@zkochan/pnpm
Version:
A fast implementation of npm install
40 lines (29 loc) • 1.04 kB
Markdown
[![Build Status][3]][4] [![dependency status][5]][6]
[![browser support][7]][8]
An Object.keys shim. Uses Object.keys if available.
```js
var keys = require('object-keys');
var assert = require('assert');
var obj = {
a: true,
b: true,
c: true
};
assert.equal(keys(obj), ['a', 'b', 'c']);
```
Implementation taken directly from [es5-shim]([9]), with modifications, including from [lodash]([10]).
Simply clone the repo, `npm install`, and run `npm test`
[]: https://npmjs.org/package/object-keys
[]: http://vb.teelaun.ch/ljharb/object-keys.svg
[]: https://travis-ci.org/ljharb/object-keys.png
[]: https://travis-ci.org/ljharb/object-keys
[]: https://david-dm.org/ljharb/object-keys.png
[]: https://david-dm.org/ljharb/object-keys
[]: https://ci.testling.com/ljharb/object-keys.png
[]: https://ci.testling.com/ljharb/object-keys
[]: https://github.com/kriskowal/es5-shim/blob/master/es5-shim.js#L542-589
[]: https://github.com/bestiejs/lodash