functions-have-names
's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.Name | Version | Size | License | Type | Vulnerabilities |
---|
The "functions-have-names" is a handy npm package acting as a utility to determine if the JavaScript environment supports the name
property on functions. It's essential for developers who want to ensure compatibility across different JavaScript engines or execute certain code based on the feature support.
In order to leverage the functionality provided by "functions-have-names" package, a developer first needs to install it into their project via npm using the command npm install functions-have-names
. Then, it can be used as shown in the example below:
var functionsHaveNames = require('functions-have-names');
var assert = require('assert');
assert.equal(functionsHave-names(), true); // This will return `false` in environments like IE 6-8
The function functionsHaveNames()
returns a boolean indicating the support for name
property on functions in the current JS environment.
The main documentation for "functions-have-names" is located directly at its GitHub page (git+https://github.com/inspect-js/functions-have-names.git). You can find the necessary details within the README section. Apart from that, information about the package including its dependencies and version history can also be accessed via the npm package page (https://npmjs.org/package/functions-have-names).