File.constructor

The File constructor.

Syntax

new File(array, name?, options?)

Parameters

Return value

A new File object.

Example

let file = new File(['Hello, world!'], 'hello.txt')
file.textSync()
"one two"