1
var isBoomerang = function (points) {2
// if any two of the three points are the same point return false;4
if (points[0][0] == points[1][0] && points[0][1] == points[1][1])6
if (points[0][0] == points[2][0] && points[0][1] == points[2][1])8
if (points[2][0] == points[1][0] && points[2][1] == points[1][1])11
// if the points are in a straight line return false;13
let slope1 = (points[0][1] - points[1][1]) / (points[0][0] - points[1][0]);14
let slope2 = (points[1][1] - points[2][1]) / (points[1][0] - points[2][0]);15
if (points[0][0] == points[1][0] && points[0][0] === points[2][0])17
if (points[0][1] == points[1][1] && points[0][1] === points[2][1])20
if (slope1 === slope2) return false;