chuwanghui 6d115466a5 electron库 | 6 gadi atpakaļ | |
---|---|---|
.. | ||
test | 6 gadi atpakaļ | |
.npmignore | 6 gadi atpakaļ | |
.travis.yml | 6 gadi atpakaļ | |
README.md | 6 gadi atpakaļ | |
foreach.js | 6 gadi atpakaļ | |
index.js | 6 gadi atpakaļ | |
isArguments.js | 6 gadi atpakaļ | |
package.json | 6 gadi atpakaļ | |
shim.js | 6 gadi atpakaļ |
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