From 7e28628d330391a5302d7ff75aa0e27348c21bdc Mon Sep 17 00:00:00 2001 From: Cody Kaup Date: Mon, 30 Sep 2024 11:59:28 -0500 Subject: [PATCH] function_ => callback --- node-src/lib/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node-src/lib/utils.ts b/node-src/lib/utils.ts index d9d43a091..2962d0355 100644 --- a/node-src/lib/utils.ts +++ b/node-src/lib/utils.ts @@ -3,10 +3,10 @@ import picomatch, { Matcher } from 'picomatch'; export const lcfirst = (str: string) => `${str.charAt(0).toLowerCase()}${str.slice(1)}`; export const delay = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms)); -export const tick = async (times: number, interval: number, function_: (index: number) => any) => { +export const tick = async (times: number, interval: number, callback: (index: number) => any) => { for (let index = 0; index < times; index += 1) { await delay(interval); - function_(index); + callback(index); } };