@pakal/keys
Keys is package from Pakal library
Install
$ yarn add @pakal/keys
Or
$ npm install --save @pakal/keys
Use
Module
import {
default as keys
} from '@pakal/keys';
Browser
<script src="https://unpkg.com/@pakal/keys/bundle.umd.min.js"></script>
let {
keys
} = _;
Examples
keys(); // => []
keys(null); // => []
keys(NaN); // => []
keys(true); // => []
keys({a: 1, b: 2, c: 3}); // => ['a', 'b', 'c']
keys('foo'); // => ['0', '1', '2']
keys(Object.defineProperties({foo: 'bar'}, {color: {value: 'red'}})); // => ['foo']
keys(Object.setPrototypeOf({name: 'bob'}, {num: 69})); // => ['name']
License
Copyright © Yisrael Eliev, Licensed under the MIT license.