UNPKG

@nexusapp/extract-files

Version:

Clones a value, recursively extracting File, Blob and ReactNativeFile instances with their object paths, replacing them with null. FileList instances are treated as File instance arrays.

11 lines (9 loc) 192 B
'use strict'; module.exports = function ReactNativeFile(_ref) { var uri = _ref.uri, name = _ref.name, type = _ref.type; this.uri = uri; this.name = name; this.type = type; };