Detect native function
name
support.
var hasFunctionNameSupport = require( '@stdlib/utils/detect-function-name-support' );
Detects if a runtime environment supports the ES2015 function name
property.
var bool = hasFunctionNameSupport();
// returns <Boolean>
var hasFunctionNameSupport = require( '@stdlib/utils/detect-function-name-support' );
var bool = hasFunctionNameSupport();
if ( bool ) {
console.log( 'Environment has function name support.' );
} else {
console.log( 'Environment lacks function name support.' );
}
Usage: hasfunctionnames [options]
Options:
-h, --help Print this message.
-V, --version Print the package version.
$ hasfunctionnames
<boolean>