You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
blockvote/node_modules/form-data-encoder/lib/esm/util/isFileLike.js

10 lines
327 B

import isFunction from "./isFunction.js";
export const isFileLike = (value) => Boolean(value
&& typeof value === "object"
&& isFunction(value.constructor)
&& value[Symbol.toStringTag] === "File"
&& isFunction(value.stream)
&& value.name != null
&& value.size != null
&& value.lastModified != null);