source: imaps-frontend/node_modules/jsx-ast-utils/lib/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: 632 bytes
Line 
1'use strict';
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.default = extractValueFromSequenceExpression;
7/**
8 * Extractor function for a SequenceExpression type value node.
9 * A Sequence expression is an object with an attribute named
10 * expressions which contains an array of different types
11 * of expression objects.
12 *
13 * @returns - An array of the extracted elements.
14 */
15function extractValueFromSequenceExpression(value) {
16 // eslint-disable-next-line global-require
17 var getValue = require('.').default;
18 return value.expressions.map(function (element) {
19 return getValue(element);
20 });
21}
Note: See TracBrowser for help on using the repository browser.