Nova-Client/Solar/Launcher/node_modules/object-keys
2023-03-19 19:32:58 +00:00
..
test !! 2023-03-19 19:32:58 +00:00
.npmignore !! 2023-03-19 19:32:58 +00:00
.travis.yml !! 2023-03-19 19:32:58 +00:00
foreach.js !! 2023-03-19 19:32:58 +00:00
index.js !! 2023-03-19 19:32:58 +00:00
isArguments.js !! 2023-03-19 19:32:58 +00:00
package.json !! 2023-03-19 19:32:58 +00:00
README.md !! 2023-03-19 19:32:58 +00:00
shim.js !! 2023-03-19 19:32:58 +00: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