4 ms·
>2014 and javascript is awesome sort(1,10,5,3) 1, 10, 3, 5 Then there is this. null == false //false !null //true
by valarauca1 13y ago
>2014 and javascript is awesome
sort(1,10,5,3)
1, 10, 3, 5
Then there is this.
null == false //false
!null //true
- Cthulhu_ 13y agohttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe... > The default sort order is lexicographic (not numeric). Works as documented.
- theandrewbailey 13y agoSorry, by 'javascript is awesome', I meant 'javascript performance is awesome'.