The File constructor.
new File(array, name?, options?)
array
An array of objects in the blob.
Can be a mixture of strings, ArrayBuffers, TypedArrays, DataViews, and Blobs.
If the array contains any other type of object, it will be converted to a string.
name
A string representing the file name.
options optional
An object with the following properties:
type optional
A string describing the media type of the blob.
lastModified optional
A number representing the last modified time of the file in milliseconds since the Unix epoch. Defaults to Date.now().
A new File object.
let file = new File(['Hello, world!'], 'hello.txt')
file.textSync()
"one two"