zachleat’s Twitter Archive
—№ 10,252
⇤ Newest
Tweet
⇠ Newer
Tweet
Older
Tweet
⇢
Safari doesn’t appreciate it when your Array.prototype.sort compareFunction argument returns a boolean.
Permalink
On twitter.com
❤️ 1
Favorite
2015 Feb 19
Mood +
2
🙂
…in reply to @zachleat
To be fair
ecma-international.org/ecma-262/5.1/#sec-15.4.4.11
requires zero or positive/negative so Safari is technically correct here.
On twitter.com
❤️ 3
Favorites
2015 Feb 19
Mood +
2
🙂