Sha256: ceaff2eedb72e250bbdaf96429e31ee249a2c2cda84538c9fb26bc7e0907a5a8

Contents?: true

Size: 416 Bytes

Versions: 52

Compression:

Stored size: 416 Bytes

Contents

/**
 * Extractor function for a FunctionExpression type value node.
 * Statically, we can't execute the given function, so just return a function
 * to indicate that the value is present.
 *
 * @param - value - AST Value object with type `FunctionExpression`
 * @returns - The extracted value converted to correct type.
 */
export default function extractValueFromFunctionExpression(value) {
  return () => value;
}

Version data entries

52 entries across 52 versions & 4 rubygems

Version Path
immosquare-cleaner-0.1.51 node_modules/jsx-ast-utils/src/values/expressions/FunctionExpression.js
immosquare-cleaner-0.1.50 node_modules/jsx-ast-utils/src/values/expressions/FunctionExpression.js
immosquare-cleaner-0.1.49 node_modules/jsx-ast-utils/src/values/expressions/FunctionExpression.js
immosquare-cleaner-0.1.48 node_modules/jsx-ast-utils/src/values/expressions/FunctionExpression.js
immosquare-cleaner-0.1.47 node_modules/jsx-ast-utils/src/values/expressions/FunctionExpression.js
immosquare-cleaner-0.1.46 node_modules/jsx-ast-utils/src/values/expressions/FunctionExpression.js
immosquare-cleaner-0.1.45 node_modules/jsx-ast-utils/src/values/expressions/FunctionExpression.js
decidim-0.26.8 packages/eslint-config/node_modules/jsx-ast-utils/src/values/expressions/FunctionExpression.js
govuk_publishing_components-18.0.0 node_modules/jsx-ast-utils/src/values/expressions/FunctionExpression.js
govuk_publishing_components-17.21.0 node_modules/jsx-ast-utils/src/values/expressions/FunctionExpression.js
govuk_publishing_components-17.20.0 node_modules/jsx-ast-utils/src/values/expressions/FunctionExpression.js
govuk_publishing_components-17.19.1 node_modules/jsx-ast-utils/src/values/expressions/FunctionExpression.js
govuk_publishing_components-17.19.0 node_modules/jsx-ast-utils/src/values/expressions/FunctionExpression.js
govuk_publishing_components-17.18.0 node_modules/jsx-ast-utils/src/values/expressions/FunctionExpression.js
govuk_publishing_components-17.17.0 node_modules/jsx-ast-utils/src/values/expressions/FunctionExpression.js
govuk_publishing_components-17.16.0 node_modules/jsx-ast-utils/src/values/expressions/FunctionExpression.js
govuk_publishing_components-17.15.0 node_modules/jsx-ast-utils/src/values/expressions/FunctionExpression.js
govuk_publishing_components-17.14.0 node_modules/jsx-ast-utils/src/values/expressions/FunctionExpression.js
govuk_publishing_components-17.13.0 node_modules/jsx-ast-utils/src/values/expressions/FunctionExpression.js
govuk_publishing_components-17.12.2 node_modules/jsx-ast-utils/src/values/expressions/FunctionExpression.js