todoApp/node_modules/own-keys
Fernando Escobar Robles 50469288e1 version 1.0 2025-03-26 08:18:28 -06:00
..
.github version 1.0 2025-03-26 08:18:28 -06:00
test version 1.0 2025-03-26 08:18:28 -06:00
.eslintrc version 1.0 2025-03-26 08:18:28 -06:00
.nycrc version 1.0 2025-03-26 08:18:28 -06:00
CHANGELOG.md version 1.0 2025-03-26 08:18:28 -06:00
LICENSE version 1.0 2025-03-26 08:18:28 -06:00
README.md version 1.0 2025-03-26 08:18:28 -06:00
index.d.ts version 1.0 2025-03-26 08:18:28 -06:00
index.js version 1.0 2025-03-26 08:18:28 -06:00
package.json version 1.0 2025-03-26 08:18:28 -06:00
tsconfig.json version 1.0 2025-03-26 08:18:28 -06:00

README.md

own-keys Version Badge

github actions coverage License Downloads

npm badge

Robustly get an object's own property keys (strings and symbols), including non-enumerables when possible.

Getting started

npm install --save own-keys

Usage/Examples

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']);

Tests

Simply clone the repo, npm install, and run npm test