* Gets the actual offset into an array for a relative offset. Negative offsets indicate a * position offset from the end of the array.
(array, offset)
| 1190 | * position offset from the end of the array. |
| 1191 | */ |
| 1192 | function toOffset(array, offset) { |
| 1193 | return offset < 0 ? array.length + offset : offset; |
| 1194 | } |
| 1195 | function addRange(to, from, start, end) { |
| 1196 | if (from === undefined || from.length === 0) |
| 1197 | return to; |