|
пре 3 недеља | |
---|---|---|
.. | ||
.github | пре 3 недеља | |
test | пре 3 недеља | |
.eslintrc | пре 3 недеља | |
.nycrc | пре 3 недеља | |
CHANGELOG.md | пре 3 недеља | |
LICENSE | пре 3 недеља | |
README.md | пре 3 недеља | |
index.d.ts | пре 3 недеља | |
index.js | пре 3 недеља | |
package.json | пре 3 недеља | |
tsconfig.json | пре 3 недеља |
Robustly get an object's own property keys (strings and symbols), including non-enumerables when possible.
npm install --save own-keys
var ownKeys = require('own-keys');
var assert = require('assert');
assert.deepEqual(ownKeys({ a: 1, b: 2 }), ['a', 'b']);
assert.deepEqual(ownKeys([1, 2, 3]), [0, 1, 2, 'length']);
Simply clone the repo, npm install
, and run npm test