source: imaps-frontend/node_modules/own-keys/README.md

main
Last change on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 1.7 KB
Line 
1# own-keys <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
2
3[![github actions][actions-image]][actions-url]
4[![coverage][codecov-image]][codecov-url]
5[![License][license-image]][license-url]
6[![Downloads][downloads-image]][downloads-url]
7
8[![npm badge][npm-badge-png]][package-url]
9
10Robustly get an object's own property keys (strings and symbols), including non-enumerables when possible.
11
12## Getting started
13
14```sh
15npm install --save own-keys
16```
17
18## Usage/Examples
19
20```js
21var ownKeys = require('own-keys');
22var assert = require('assert');
23
24assert.deepEqual(ownKeys({ a: 1, b: 2 }), ['a', 'b']);
25assert.deepEqual(ownKeys([1, 2, 3]), [0, 1, 2, 'length']);
26```
27
28## Tests
29Simply clone the repo, `npm install`, and run `npm test`
30
31[package-url]: https://npmjs.org/package/own-keys
32[npm-version-svg]: https://versionbadg.es/ljharb/own-keys.svg
33[deps-svg]: https://david-dm.org/ljharb/own-keys.svg
34[deps-url]: https://david-dm.org/ljharb/own-keys
35[dev-deps-svg]: https://david-dm.org/ljharb/own-keys/dev-status.svg
36[dev-deps-url]: https://david-dm.org/ljharb/own-keys#info=devDependencies
37[npm-badge-png]: https://nodei.co/npm/own-keys.png?downloads=true&stars=true
38[license-image]: https://img.shields.io/npm/l/own-keys.svg
39[license-url]: LICENSE
40[downloads-image]: https://img.shields.io/npm/dm/own-keys.svg
41[downloads-url]: https://npm-stat.com/charts.html?package=own-keys
42[codecov-image]: https://codecov.io/gh/ljharb/own-keys/branch/main/graphs/badge.svg
43[codecov-url]: https://app.codecov.io/gh/ljharb/own-keys/
44[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/own-keys
45[actions-url]: https://github.com/ljharb/own-keys/actions
Note: See TracBrowser for help on using the repository browser.