You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
typesetting/pitfall/pdfkit/node_modules/object-keys
Matthew Butterick 3f36e2ce2c porting 7 years ago
..
test porting 7 years ago
.npmignore porting 7 years ago
.travis.yml porting 7 years ago
README.md porting 7 years ago
foreach.js porting 7 years ago
index.js porting 7 years ago
isArguments.js porting 7 years ago
package.json porting 7 years ago
shim.js porting 7 years ago

README.md

#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