From a732cc04fdb80727a5e2aa1e1f5111ab22e83dee Mon Sep 17 00:00:00 2001 From: Andros Fenollosa Date: Wed, 9 Feb 2022 16:57:28 +0100 Subject: [PATCH] Update fnTools.ts --- src/fnTools.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fnTools.ts b/src/fnTools.ts index a354dea..705d68d 100644 --- a/src/fnTools.ts +++ b/src/fnTools.ts @@ -163,7 +163,7 @@ export function getRandom(min, max, decimals=0) { * @param {Array} list - List of files. * @return number */ -function getIndexOfFileList(name: string, list: Array): number { +export function getIndexOfFileList(name: string, list: Array): number { return list.reduce( (position, file, index) => (file.name === name ? index : position), -1