MCPcopy Create free account
hub / github.com/hoothin/UserScripts / isRegExp

Function isRegExp

Picviewer CE+/Picviewer CE+.user.js:1757–1759  ·  view source on GitHub ↗

* Cross-window, cross-Node-context regular expression detection * @param {Object} object Anything * @return {Boolean} true if the object is a regular expression, * false otherwise

(object)

Source from the content-addressed store, hash-verified

1755* false otherwise
1756*/
1757function isRegExp(object) {
1758 return Object.prototype.toString.call(object) === "[object RegExp]";
1759}
1760
1761// return the actual prototype of JSZip
1762var out = {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected