Buckets:
| export default function map(values, mapper) { | |
| if (typeof values[Symbol.iterator] !== "function") throw new TypeError("values is not iterable"); | |
| if (typeof mapper !== "function") throw new TypeError("mapper is not a function"); | |
| return Array.from(values, (value, index) => mapper(value, index, values)); | |
| } | |
Xet Storage Details
- Size:
- 310 Bytes
- Xet hash:
- 82a966622cf6abd5d3c75cd48ec29c0e955cf69b40662406e3211497511c2d7e
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.