(a)
| 599 | * @return {array} An array of values without identifiers |
| 600 | */ |
| 601 | export function generalize (a) { |
| 602 | if (!Array.isArray(a)) { |
| 603 | throw new TypeError('Array input expected') |
| 604 | } |
| 605 | |
| 606 | if (a.length === 0) { |
| 607 | return a |
| 608 | } |
| 609 | |
| 610 | const b = [] |
| 611 | for (let i = 0; i < a.length; i++) { |
| 612 | b.push(a[i].value) |
| 613 | } |
| 614 | return b |
| 615 | } |
| 616 | |
| 617 | /** |
| 618 | * Check the datatype of a given object |
no outgoing calls
no test coverage detected
searching dependent graphs…