source: trip-planner-front/node_modules/is-arguments/README.md@ 76712b2

Last change on this file since 76712b2 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.8 KB
Line 
1# is-arguments <sup>[![Version Badge][2]][1]</sup>
2
3[![github actions][actions-image]][actions-url]
4[![coverage][codecov-image]][codecov-url]
5[![dependency status][5]][6]
6[![dev dependency status][7]][8]
7[![License][license-image]][license-url]
8[![Downloads][downloads-image]][downloads-url]
9
10[![npm badge][11]][1]
11
12Is this an arguments object? It's a harder question than you think.
13
14## Example
15
16```js
17var isArguments = require('is-arguments');
18var assert = require('assert');
19
20assert.equal(isArguments({}), false);
21assert.equal(isArguments([]), false);
22(function () {
23 assert.equal(isArguments(arguments), true);
24}())
25```
26
27## Caveats
28If you have modified an actual `arguments` object by giving it a `Symbol.toStringTag` property, then this package will return `false`.
29
30## Tests
31Simply clone the repo, `npm install`, and run `npm test`
32
33[1]: https://npmjs.org/package/is-arguments
34[2]: https://versionbadg.es/inspect-js/is-arguments.svg
35[5]: https://david-dm.org/inspect-js/is-arguments.svg
36[6]: https://david-dm.org/inspect-js/is-arguments
37[7]: https://david-dm.org/inspect-js/is-arguments/dev-status.svg
38[8]: https://david-dm.org/inspect-js/is-arguments#info=devDependencies
39[11]: https://nodei.co/npm/is-arguments.png?downloads=true&stars=true
40[license-image]: https://img.shields.io/npm/l/is-arguments.svg
41[license-url]: LICENSE
42[downloads-image]: https://img.shields.io/npm/dm/is-arguments.svg
43[downloads-url]: https://npm-stat.com/charts.html?package=is-arguments
44[codecov-image]: https://codecov.io/gh/inspect-js/is-arguments/branch/main/graphs/badge.svg
45[codecov-url]: https://app.codecov.io/gh/inspect-js/is-arguments/
46[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/is-arguments
47[actions-url]: https://github.com/inspect-js/is-arguments/actions
Note: See TracBrowser for help on using the repository browser.