chuwanghui 6d115466a5 electron库 | 6 years ago | |
---|---|---|
.. | ||
test | 6 years ago | |
.npmignore | 6 years ago | |
.travis.yml | 6 years ago | |
README.md | 6 years ago | |
foreach.js | 6 years ago | |
index.js | 6 years ago | |
isArguments.js | 6 years ago | |
package.json | 6 years ago | |
shim.js | 6 years ago |
An Object.keys shim. Uses Object.keys if available.
var keys = require('object-keys');
var assert = require('assert');
var obj = {
a: true,
b: true,
c: true
};
assert.equal(keys(obj), ['a', 'b', 'c']);
Implementation taken directly from es5-shim, with modifications, including from lodash.
Simply clone the repo, npm install
, and run npm test