|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
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 | */
|
|---|
| 9 | export 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.