@param {Array<*>} array
(array)
| 23 | |
| 24 | /** @param {Array<*>} array */ |
| 25 | xadd(array) { |
| 26 | if (array.length !== this.array.length) throw new Error(`There is too many elements in given data array. Please provide data in this format: ${this.array}`) |
| 27 | const tempObj = {} |
| 28 | let arrayCounter = 0 |
| 29 | this.array.forEach(elem => { |
| 30 | tempObj[elem] = array[arrayCounter] |
| 31 | tempObj.toString = () => JSON.stringify(tempObj) |
| 32 | arrayCounter++ |
| 33 | }) |
| 34 | this.rows.push({ skip: true, data: tempObj }) |
| 35 | } |
| 36 | |
| 37 | /** @param {Function} func */ |
| 38 | filter(func) { |
no test coverage detected