public
Last active

  • Download Gist
i_hate.js
JavaScript
1 2 3 4 5 6 7 8 9 10 11
var a = [20, 10, 5, 1];
// Everyday array
 
a.sort();
// [1, 10, 20, 5]... WTF?
 
a == [1, 10, 20, 5];
// false
 
a === [1, 10, 20, 5];
// also false

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.