https://github.com/neilfraser/js-polyfills
A collection of polyfills that recreate many functions in JavaScript's standard library.
https://github.com/neilfraser/js-polyfills
Last synced: 3 months ago
JSON representation
A collection of polyfills that recreate many functions in JavaScript's standard library.
- Host: GitHub
- URL: https://github.com/neilfraser/js-polyfills
- Owner: NeilFraser
- Created: 2017-05-31T10:58:41.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-03-12T16:09:04.000Z (about 1 year ago)
- Last Synced: 2025-02-28T19:20:55.506Z (3 months ago)
- Language: JavaScript
- Size: 29.3 KB
- Stars: 19
- Watchers: 4
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# JS Polyfills
This collection of polyfills recreates much of the JavaScript 5.1 standard
library, such as parseInt, Array.prototype.pop and Math.abs.Most developers will have no need for this library since every JavaScript
implementation already includes these functions. However, if you are building
a new JavaScript interpreter, then this collection of over 50 polyfills will
reduce the number of native code functions you will need to write.Limitations:
* At this time there is no support for Date or RegExp.
* JSON is not covered due to the existing
[JSON2](https://github.com/douglascrockford/JSON-js) and
[JSON3](https://bestiejs.github.io/json3/) polyfills.
* Performance is pretty poor, particularly for String's substring and
Array's shift/unshift.
* Only JavaScript 5.1 is being targeted, plenty of existing polyfills are
available for functionality introduced in higher versions.