1
0
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:
Krishna Acondy
2021-03-30 08:59:38 +01:00
parent 1c09a10290
commit a8ca534b0b
7 changed files with 84 additions and 10 deletions

View 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)
}
}