Determine the level of support for function name inference.
npm install function-name-supportFeature detection for function names. See *The names of functions in
ES6* for background.
Provides the [same results asnode-compat-table][node-compat-table].
``console`
$ npm install --save function-name-support
`js`
const functionNameSupport = require('function-name-support')
A frozen object with boolean values. Compare with
[node-compat-table][node-compat-table]:
function statements*: functionStatementsfunctionExpressions
function expressions*: newFunction
new Function*: boundFunctions
bound functions*: functionVariables
variables (function)*: functionObjectMethods
object methods (function)*: accessorProperties
accessor properties*: shorthandMethods
shorthand methods*: symbolKeyedMethods
symbol-keyed methods*: classStatements
class statements*: classExpressions
class expressions*: classVariables
variables (class)*: classObjectMethods
object methods (class)*: classPrototypeMethods
class prototype methods*: classStaticMethods
class static methods*:
A boolean indicating whether all known function name inferences are supported.
An 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.
Helper method for comparing bitFlags. Returns true if it is a subset ofotherFlags.
Helper method for comparing bitFlags. Returns true if it is a superset ofotherFlags`.
[node-compat-table]: http://node.green/#ES2015-built-in-extensions-function--name--property