ES6 + a little more on top of ES5
In short, es2pi is a collection of ES6 polyfills + methods missing even in ES6.
Why reinvent the wheel?
- shims/polyfills found to date are not quite optimal, especially
- If you want just Map/Set, see https://github.com/dankogai/js-es6-map
- ES6 is rather inconsistent in the choice of methods, like...
Array.prototype.repeatis missing. You should be able to go like
var a = .repeat(42);
- Type.isType is available only for
typeof null === nullis welcome but shouldn't we add
- and the
- and look,
num.is(42)is definitely better than
Thanks to ES5, it is now safe to extend
What is es2pi named after?
2π is a little bigger than 6, isn't it?