documentit/node_modules/object-keys
2018-01-05 10:48:13 -08:00
..
test installed electron 2018-01-05 10:48:13 -08:00
.npmignore installed electron 2018-01-05 10:48:13 -08:00
.travis.yml installed electron 2018-01-05 10:48:13 -08:00
foreach.js installed electron 2018-01-05 10:48:13 -08:00
index.js installed electron 2018-01-05 10:48:13 -08:00
isArguments.js installed electron 2018-01-05 10:48:13 -08:00
package.json installed electron 2018-01-05 10:48:13 -08:00
README.md installed electron 2018-01-05 10:48:13 -08:00
shim.js installed electron 2018-01-05 10:48:13 -08: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