* Returns a shallow copy of a portion of the items into a new array object. * Backward-compatibility. * @param {Number} [begin] * @param {Number} [end] * @returns {Array} * @ignore
(begin, end)
| 586 | * @ignore |
| 587 | */ |
| 588 | slice(begin, end) { |
| 589 | if (!begin && !end) { |
| 590 | // Avoid making a copy of the copy |
| 591 | return this.values(); |
| 592 | } |
| 593 | |
| 594 | return this.values().slice(begin || 0, end); |
| 595 | } |
| 596 | |
| 597 | /** |
| 598 | * Deprecated: Use set() instead. |
no test coverage detected