package
Determine the level of support for function name inference.
npm install function-name-supportGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Feature detection for function names. See The names of functions in
ES6 for background.
Provides the same results as
node-compat-table.
$ npm install --save function-name-supportconst functionNameSupport = require('function-name-support')supportA frozen object with boolean values. Compare with
node-compat-table:
functionStatementsfunctionExpressionsnewFunctionboundFunctionsfunctionVariablesfunctionObjectMethodsaccessorPropertiesshorthandMethodssymbolKeyedMethodsclassStatementsclassExpressionsclassVariablesclassObjectMethodsclassPrototypeMethodsclassStaticMethodshasFullSupportA boolean indicating whether all known function name inferences are supported.
bitFlagsAn integer that stores a serialization of the support object. Useful when
storing a function name (or lack thereof) for later comparisons along with
details on whether the function name was inferable at all.
isSubsetOf(otherFlags): booleanHelper method for comparing bitFlags. Returns true if it is a subset of
otherFlags.
isSupersetOf(otherFlags: number): booleanHelper method for comparing bitFlags. Returns true if it is a superset of
otherFlags.