oef/node_modules/object-keys
2019-11-04 15:00:46 +01:00
..
test First commit 2019-11-04 15:00:46 +01:00
.npmignore First commit 2019-11-04 15:00:46 +01:00
.travis.yml First commit 2019-11-04 15:00:46 +01:00
foreach.js First commit 2019-11-04 15:00:46 +01:00
index.js First commit 2019-11-04 15:00:46 +01:00
isArguments.js First commit 2019-11-04 15:00:46 +01:00
package.json First commit 2019-11-04 15:00:46 +01:00
README.md First commit 2019-11-04 15:00:46 +01:00
shim.js First commit 2019-11-04 15:00:46 +01: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