Methods
(static) unfoldCodes(codeList, destinationopt, cacheopt) → {Array.<object>}
Flattens a given list of nested codes by shallow-copying items to a new array. Does not alter the original array.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
codeList |
Array.<object> | ||
destination |
Array.<object> |
<optional> |
the new list of codes |
cache |
Set |
<optional> |
prevents duplicates |
- Source:
Returns:
- Type
- Array.<object>