summaryrefslogtreecommitdiff
path: root/src/utils.mjs
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-03-06 11:41:21 -0300
committerEuAndreh <eu@euandre.org>2024-03-06 11:45:43 -0300
commit3f58c2d5cdd94ab12cc53b207d33e281338c66e4 (patch)
tree453f2e7c25b099c7ff120d50a825d00c0f9df49c /src/utils.mjs
parentsrc/hero.mjs: Always recreate the unix socket file (diff)
downloadpapod-3f58c2d5cdd94ab12cc53b207d33e281338c66e4.tar.gz
papod-3f58c2d5cdd94ab12cc53b207d33e281338c66e4.tar.xz
src/utils.mjs: s/first/findFirst/g
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) {