MCPcopy
hub / github.com/SeleniumHQ/selenium / isArray

Function isArray

third_party/js/qunit/qunit.js:961–968  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

959 return join('[', ret, ']');
960 }
961 function isArray(obj) {
962 return (
963 // Native Arrays
964 toString.call(obj) === '[object Array]' ||
965 // NodeList objects
966 typeof obj.length === 'number' && obj.item !== undefined && (obj.length ? obj.item(0) === obj[0] : obj.item(0) === null && obj[0] === undefined)
967 );
968 }
969 var reName = /^function (\w+)/;
970 var dump = {
971 // The objType is used mostly internally, you can fix a (custom) type in advance

Callers 1

qunit.jsFile · 0.85

Calls 1

callMethod · 0.65

Tested by

no test coverage detected