We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b32895f commit 0b2c1bcCopy full SHA for 0b2c1bc
src/DOMAPI/FileList.res
@@ -2,6 +2,17 @@ open FileAPI
2
open DOMAPI
3
4
/**
5
+Returns the `File` at the specified index.
6
+
7
+`FileList` is not an array, so you need to iterate manually using `length` and `item`:
8
9
+```rescript
10
+let files = []
11
+for i in 0 to fileList.length - 1 {
12
+ files->Array.push(fileList->FileList.item(i))
13
+}
14
+```
15
16
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/FileList/item)
17
*/
18
@send
0 commit comments