MCPcopy Index your code
hub / github.com/blueimp/JavaScript-Load-Image / isInstanceOf

Function isInstanceOf

js/load-image.js:85–88  ·  view source on GitHub ↗

* Cross-frame instanceof check. * * @param {string} type Instance type * @param {object} obj Object instance * @returns {boolean} Returns true if the object is of the given instance.

(type, obj)

Source from the content-addressed store, hash-verified

83 * @returns {boolean} Returns true if the object is of the given instance.
84 */
85 function isInstanceOf(type, obj) {
86 // Cross-frame instanceof check
87 return Object.prototype.toString.call(obj) === '[object ' + type + ']'
88 }
89
90 /**
91 * @typedef { HTMLImageElement|HTMLCanvasElement } Result

Callers 2

fetchBlobCallbackFunction · 0.85
executorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected