Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
5.2.1
-
None
-
210475565969ca
Description
Run the attached example code couple of times.
Most Array.sort() calls are ok, but for some sort() returns an array of undefined items:
console.log(array) // array= [[object Object],[object Object],[object Object],...] array.sort(function() { return 0.5 - Math.random() }) console.log(array) // array= [,,,,]