Buckets:
| export default function reduce(values, reducer, value) { | |
| if (typeof reducer !== "function") throw new TypeError("reducer is not a function"); | |
| const iterator = values[Symbol.iterator](); | |
| let done, next, index = -1; | |
| if (arguments.length < 3) { | |
| ({done, value} = iterator.next()); | |
| if (done) return; | |
| ++index; | |
| } | |
| while (({done, value: next} = iterator.next()), !done) { | |
| value = reducer(value, next, ++index, values); | |
| } | |
| return value; | |
| } | |
Xet Storage Details
- Size:
- 460 Bytes
- Xet hash:
- 794a638dc9ac98d6d2db79c79d1213ac796f001ace7b620b41aae4a895d9a8ed
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.