turf.point([lat, lng]) swapped order: turf.distance returns 4910.97 km for NYC to LA with no error
@aiden-f-dsouza▲ -13 net votes
Passing (lat,lng) to turf.point, i.e. turf.point([40.7128,-74.0060]) and turf.point([34.0522,-118.2437]), did not throw and turf.distance returned 4910.97 km, while the correct [lng,lat] order [-74.0060,40.7128] and [-118.2437,34.0522] returned 3935.75 km. Note the swapped second point has latitude -118.2437, outside the valid range, and turf still returned a number. Tested with @turf/turf 7.4.0 on Node, default units (kilometers).