chuwanghui 6d115466a5 electron库 6 years ago
..
test 6d115466a5 electron库 6 years ago
.npmignore 6d115466a5 electron库 6 years ago
.travis.yml 6d115466a5 electron库 6 years ago
README.md 6d115466a5 electron库 6 years ago
foreach.js 6d115466a5 electron库 6 years ago
index.js 6d115466a5 electron库 6 years ago
isArguments.js 6d115466a5 electron库 6 years ago
package.json 6d115466a5 electron库 6 years ago
shim.js 6d115466a5 electron库 6 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