Opal-Estate-Pro/node_modules/object-keys
2019-09-13 09:44:33 +07:00
..
test uapte 2019-09-13 09:44:33 +07:00
.npmignore uapte 2019-09-13 09:44:33 +07:00
.travis.yml uapte 2019-09-13 09:44:33 +07:00
foreach.js uapte 2019-09-13 09:44:33 +07:00
index.js uapte 2019-09-13 09:44:33 +07:00
isArguments.js uapte 2019-09-13 09:44:33 +07:00
package.json uapte 2019-09-13 09:44:33 +07:00
README.md uapte 2019-09-13 09:44:33 +07:00
shim.js uapte 2019-09-13 09:44:33 +07:00

#object-keys Version Badge

Build Status dependency status

browser support

An Object.keys shim. Uses Object.keys if available.

Example

var keys = require('object-keys');
var assert = require('assert');
var obj = {
	a: true,
	b: true,
	c: true
};

assert.equal(keys(obj), ['a', 'b', 'c']);

Source

Implementation taken directly from es5-shim, with modifications, including from lodash.

Tests

Simply clone the repo, npm install, and run npm test