summaryrefslogtreecommitdiff
path: root/src/utils.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils.mjs')
-rw-r--r--src/utils.mjs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils.mjs b/src/utils.mjs
index cb0c116..7d27c0d 100644
--- a/src/utils.mjs
+++ b/src/utils.mjs
@@ -29,7 +29,7 @@ export const getIn = (obj, path) =>
path.length === 0 ? obj :
getIn(obj?.[path[0]], path.slice(1));
-export const first = (arr, fn) => {
+export const findFirst = (arr, fn) => {
for (const x of arr) {
const ret = fn(x);
if (ret) {