mirror of
https://github.com/sasjs/lint.git
synced 2026-01-09 05:20:06 +00:00
chore(*): add comments
This commit is contained in:
@@ -1,3 +1,6 @@
|
|||||||
|
/**
|
||||||
|
* Executes an async callback for each item in the given array.
|
||||||
|
*/
|
||||||
export async function asyncForEach(
|
export async function asyncForEach(
|
||||||
array: any[],
|
array: any[],
|
||||||
callback: (item: any, index: number, originalArray: any[]) => any
|
callback: (item: any, index: number, originalArray: any[]) => any
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
import { listFilesInFolder } from '@sasjs/utils/file'
|
import { listFilesInFolder } from '@sasjs/utils/file'
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Fetches a list of .sas files in the given path.
|
||||||
|
* @returns {Promise<string[]>} resolves with an array of file names.
|
||||||
|
*/
|
||||||
export const listSasFiles = async (folderPath: string): Promise<string[]> => {
|
export const listSasFiles = async (folderPath: string): Promise<string[]> => {
|
||||||
const files = await listFilesInFolder(folderPath)
|
const files = await listFilesInFolder(folderPath)
|
||||||
return files.filter((f) => f.endsWith('.sas'))
|
return files.filter((f) => f.endsWith('.sas'))
|
||||||
|
|||||||
Reference in New Issue
Block a user