mirror of
https://github.com/sasjs/lint.git
synced 2026-01-08 13:00:06 +00:00
feat(lint): add lintFolder and lintProject APIs
This commit is contained in:
8
src/utils/asyncForEach.ts
Normal file
8
src/utils/asyncForEach.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
export async function asyncForEach(
|
||||
array: any[],
|
||||
callback: (item: any, index: number, originalArray: any[]) => any
|
||||
) {
|
||||
for (let index = 0; index < array.length; index++) {
|
||||
await callback(array[index], index, array)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user