improved viewers

This commit is contained in:
Andrea Pozzetti
2025-11-16 13:39:43 +01:00
parent c19e5829d7
commit 1678566c11
5324 changed files with 606218 additions and 29 deletions
+6
View File
@@ -0,0 +1,6 @@
import leastIndex from "./leastIndex.js";
export default function scan(values, compare) {
const index = leastIndex(values, compare);
return index < 0 ? undefined : index;
}