Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gamtiq/es5-micro-shim
Several shims for ECMAScript 5 functions
https://github.com/gamtiq/es5-micro-shim
Last synced: about 8 hours ago
JSON representation
Several shims for ECMAScript 5 functions
- Host: GitHub
- URL: https://github.com/gamtiq/es5-micro-shim
- Owner: gamtiq
- Created: 2013-06-17T19:09:38.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-01-07T22:04:47.000Z (almost 10 years ago)
- Last Synced: 2024-04-14T23:00:04.553Z (7 months ago)
- Language: JavaScript
- Size: 141 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: History.md
Awesome Lists containing this project
README
# es5-micro-shim
Several shims for ECMAScript 5 functions:
* `Array.isArray`
* `Array.prototype.indexOf`
* `Function.prototype.bind`
* `Object.create`
* `Object.keys`## Installation
Install [Component](https://github.com/componentjs/component):
npm install -g component
Then:
component install gamtiq/es5-micro-shim
## Usage
```js
var shim = require("es5-micro-shim");
...
var test1 = Array.isArray(obj);
var test2 = shim.isArray(obj);var child1 = Object.create(obj);
var child2 = shim.create(obj);var keys1 = Object.keys(obj);
var keys2 = shim.keys(obj);var boundFunc = someFunction.bind(obj);
var nIndex = someArray.indexOf(someValue1, nStartIndex);
```## Licence
MIT