MCPcopy Create free account
hub / github.com/prototypejs/prototype / sameType

Function sameType

test/unit/static/js/mocha.js:2091–2095  ·  view source on GitHub ↗

* Check that a / b have the same type. * * @param {Object} a * @param {Object} b * @return {Boolean} * @api private

(a, b)

Source from the content-addressed store, hash-verified

2089 */
2090
2091function sameType(a, b) {
2092 a = Object.prototype.toString.call(a);
2093 b = Object.prototype.toString.call(b);
2094 return a == b;
2095}
2096
2097}); // module: reporters/base.js
2098

Callers 1

mocha.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected