Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lunaisnotaboy/es5-basic-shim
es5-basic-shim
https://github.com/lunaisnotaboy/es5-basic-shim
Last synced: about 2 months ago
JSON representation
es5-basic-shim
- Host: GitHub
- URL: https://github.com/lunaisnotaboy/es5-basic-shim
- Owner: lunaisnotaboy
- Created: 2021-11-28T20:45:42.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2021-11-28T20:58:20.000Z (about 3 years ago)
- Last Synced: 2024-10-13T19:41:50.456Z (3 months ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ES5 Basic Shim
A basic ES5 shim for older browsers.
Contains shims for the following objects:
- Function
- String
- Object
- ArrayIf any of the shimmed methods already exist in the environment, they are not replaced.
## Function
Shim to Function.bind
## String
Shim to String.trim
## Object
Shim to Object.keys and Object.create. For Object.create, only the first param is considered, that is, the prototype of the object to be created. Property descriptors are not parsed.
## Array
Shim to
- forEach
- indexOf
- map
- filter
- some
- every
- lastIndexOf
- reduce
- recuceRight
- Array.isArray