1 | # functions-have-names <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
|
---|
2 |
|
---|
3 | [![github actions][actions-image]][actions-url]
|
---|
4 | [![coverage][codecov-image]][codecov-url]
|
---|
5 | [![dependency status][deps-svg]][deps-url]
|
---|
6 | [![dev dependency status][dev-deps-svg]][dev-deps-url]
|
---|
7 | [![License][license-image]][license-url]
|
---|
8 | [![Downloads][downloads-image]][downloads-url]
|
---|
9 |
|
---|
10 | [![npm badge][npm-badge-png]][package-url]
|
---|
11 |
|
---|
12 | Does this JS environment support the `name` property on functions?
|
---|
13 |
|
---|
14 | ## Example
|
---|
15 |
|
---|
16 | ```js
|
---|
17 | var functionsHaveNames = require('functions-have-names');
|
---|
18 | var assert = require('assert');
|
---|
19 |
|
---|
20 | assert.equal(functionsHaveNames(), true); // will be `false` in IE 6-8
|
---|
21 | ```
|
---|
22 |
|
---|
23 | ## Tests
|
---|
24 | Simply clone the repo, `npm install`, and run `npm test`
|
---|
25 |
|
---|
26 | [package-url]: https://npmjs.org/package/functions-have-names
|
---|
27 | [npm-version-svg]: https://versionbadg.es/inspect-js/functions-have-names.svg
|
---|
28 | [deps-svg]: https://david-dm.org/inspect-js/functions-have-names.svg
|
---|
29 | [deps-url]: https://david-dm.org/inspect-js/functions-have-names
|
---|
30 | [dev-deps-svg]: https://david-dm.org/inspect-js/functions-have-names/dev-status.svg
|
---|
31 | [dev-deps-url]: https://david-dm.org/inspect-js/functions-have-names#info=devDependencies
|
---|
32 | [npm-badge-png]: https://nodei.co/npm/functions-have-names.png?downloads=true&stars=true
|
---|
33 | [license-image]: https://img.shields.io/npm/l/functions-have-names.svg
|
---|
34 | [license-url]: LICENSE
|
---|
35 | [downloads-image]: https://img.shields.io/npm/dm/functions-have-names.svg
|
---|
36 | [downloads-url]: https://npm-stat.com/charts.html?package=functions-have-names
|
---|
37 | [codecov-image]: https://codecov.io/gh/inspect-js/functions-have-names/branch/main/graphs/badge.svg
|
---|
38 | [codecov-url]: https://app.codecov.io/gh/inspect-js/functions-have-names/
|
---|
39 | [actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/functions-have-names
|
---|
40 | [actions-url]: https://github.com/inspect-js/functions-have-names/actions
|
---|