Update fnTools.ts
This commit is contained in:
parent
e9a9ab3ad1
commit
40e5fd0dc0
@ -176,7 +176,7 @@ export function getIndexOfFileList(name: string, list: Array<File>): number {
|
||||
* @param {number} index
|
||||
* @return {Array} list
|
||||
*/
|
||||
export function deleteArrayElementByIndex(list: Array<any>, index: number) {
|
||||
export function deleteArrayElementByIndex(list: Array<any>, index: number): FileList {
|
||||
return list.filter((item, itemIndex) => itemIndex !== index);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user