프로젝트

일반

사용자정보

통계
| 개정판:

root / HServer / 00.Server / 00.Program / node_modules / object-keys / README.md

이력 | 보기 | 이력해설 | 다운로드 (1.02 KB)

1
#object-keys <sup>[![Version Badge][2]][1]</sup>
2

    
3
[![Build Status][3]][4] [![dependency status][5]][6]
4

    
5
[![browser support][7]][8]
6

    
7
An Object.keys shim. Uses Object.keys if available.
8

    
9
## Example
10

    
11
```js
12
var keys = require('object-keys');
13
var assert = require('assert');
14
var obj = {
15
	a: true,
16
	b: true,
17
	c: true
18
};
19

    
20
assert.equal(keys(obj), ['a', 'b', 'c']);
21
```
22

    
23
## Source
24
Implementation taken directly from [es5-shim]([9]), with modifications, including from [lodash]([10]).
25

    
26
## Tests
27
Simply clone the repo, `npm install`, and run `npm test`
28

    
29
[1]: https://npmjs.org/package/object-keys
30
[2]: http://vb.teelaun.ch/ljharb/object-keys.svg
31
[3]: https://travis-ci.org/ljharb/object-keys.png
32
[4]: https://travis-ci.org/ljharb/object-keys
33
[5]: https://david-dm.org/ljharb/object-keys.png
34
[6]: https://david-dm.org/ljharb/object-keys
35
[7]: https://ci.testling.com/ljharb/object-keys.png
36
[8]: https://ci.testling.com/ljharb/object-keys
37
[9]: https://github.com/kriskowal/es5-shim/blob/master/es5-shim.js#L542-589
38
[10]: https://github.com/bestiejs/lodash
39