$ cnpm install function-name-support
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-support
const 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.
Copyright 2013 - present © cnpmjs.org | Home |