MCPcopy Create free account
hub / github.com/react-dropzone/react-dropzone / isAbort

Function isAbort

src/utils/index.js:303–308  ·  view source on GitHub ↗
(v)

Source from the content-addressed store, hash-verified

301 * @returns {boolean} True if v is an abort exception.
302 */
303export function isAbort(v) {
304 return (
305 v instanceof DOMException &&
306 (v.name === "AbortError" || v.code === v.ABORT_ERR)
307 );
308}
309
310/**
311 * Check if v is a security error.

Callers 1

useDropzoneFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…