ohctechv3/.svn/pristine/45/45f0196183016df500aeebfbe819f0ba655473c2.svn-base

12 lines
416 B
Plaintext
Raw Normal View History

2024-10-28 15:03:36 +05:30
/**
* 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;
}