Opal-Estate-Pro/node_modules/object-keys
2019-09-13 11:27:52 +07:00
..
test style Dashboard 2019-09-13 11:27:52 +07:00
.npmignore style Dashboard 2019-09-13 11:27:52 +07:00
.travis.yml style Dashboard 2019-09-13 11:27:52 +07:00
foreach.js style Dashboard 2019-09-13 11:27:52 +07:00
index.js style Dashboard 2019-09-13 11:27:52 +07:00
isArguments.js style Dashboard 2019-09-13 11:27:52 +07:00
package.json style Dashboard 2019-09-13 11:27:52 +07:00
README.md style Dashboard 2019-09-13 11:27:52 +07:00
shim.js style Dashboard 2019-09-13 11:27:52 +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