@pakal/keys
TypeScript icon, indicating that this package has built-in type declarations

0.2.1 • Public • Published

@pakal/keys

Source Code Version MIT License Bundle Size TypeScript

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.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @pakal/keys

      Weekly Downloads

      3

      Version

      0.2.1

      License

      MIT

      Unpacked Size

      26.9 kB

      Total Files

      15

      Last publish

      Collaborators

      • yisraelx