Portfolio/node_modules/object-keys
Repository files (latest commit first)
Filename Latest commit message Latest commit date
oitsjustjose 4e066bffc9 Init
2017-02-25 03:50:31 -05:00
..
test Init 2017-02-25 03:50:31 -05:00
.npmignore Init 2017-02-25 03:50:31 -05:00
.travis.yml Init 2017-02-25 03:50:31 -05:00
foreach.js Init 2017-02-25 03:50:31 -05:00
index.js Init 2017-02-25 03:50:31 -05:00
isArguments.js Init 2017-02-25 03:50:31 -05:00
package.json Init 2017-02-25 03:50:31 -05:00
README.md Init 2017-02-25 03:50:31 -05:00
shim.js Init 2017-02-25 03:50:31 -05: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