Buckets:
| export default function minIndex(values, valueof) { | |
| let min; | |
| let minIndex = -1; | |
| let index = -1; | |
| if (valueof === undefined) { | |
| for (const value of values) { | |
| ++index; | |
| if (value != null | |
| && (min > value || (min === undefined && value >= value))) { | |
| min = value, minIndex = index; | |
| } | |
| } | |
| } else { | |
| for (let value of values) { | |
| if ((value = valueof(value, ++index, values)) != null | |
| && (min > value || (min === undefined && value >= value))) { | |
| min = value, minIndex = index; | |
| } | |
| } | |
| } | |
| return minIndex; | |
| } | |
Xet Storage Details
- Size:
- 582 Bytes
- Xet hash:
- fc805f56e3cb1d2a9b89524f3094e09cbc5c94ac81049801ada297caba15b5cc
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.