UNPKG

charlike

Version:

Small, fast, simple and streaming project scaffolder for myself, but not only. Supports hundreds of template engines through the @JSTransformers API or if you want custom `render` function passed through options

12 lines (10 loc) 338 B
import getValue from './index'; /** * Extractor function for an ArrayExpression type value node. * An array expression is an expression with [] syntax. * * @returns - An array of the extracted elements. */ export default function extractValueFromArrayExpression(value) { return value.elements.map(element => getValue(element)); }