main
Last change
on this file 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
|
Rev | Line | |
---|
[d565449] | 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.