Skip to content

Instantly share code, notes, and snippets.

View lpgray's full-sized avatar
🎯
Focusing

zhangyang lpgray

🎯
Focusing
View GitHub Profile
@lpgray
lpgray / ES5 Newnewss
Last active May 25, 2016 15:34 — forked from sym3tri/ES5 Newnewss
New features of ES5 summarized
- Trailing commas are ok
- No reserved words for property names
- NaN, Infinity, undefined : are all constants
- parseInt() defaults to radix 10
- /regexp/ produces new reg ex object every time
- JSON.parse(), JSON.stringify()
- Function.prototype.bind
- String.prototype.trim
- Array.prototype.every, filter, forEach, indexOf, lastIndexOf, map, reduce, reduceRight, some,
- Date.now()