source: imaps-frontend/node_modules/jsx-ast-utils/src/values/expressions/SequenceExpression.js@ d565449

main
Last change on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 492 bytes
Line 
1/**
2 * Extractor function for a SequenceExpression type value node.
3 * A Sequence expression is an object with an attribute named
4 * expressions which contains an array of different types
5 * of expression objects.
6 *
7 * @returns - An array of the extracted elements.
8 */
9export default function extractValueFromSequenceExpression(value) {
10 // eslint-disable-next-line global-require
11 const getValue = require('.').default;
12 return value.expressions.map((element) => getValue(element));
13}
Note: See TracBrowser for help on using the repository browser.