MCPcopy
hub / github.com/Unitech/pm2 / isArray

Function isArray

lib/tools/json5.js:582–588  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

580
581 // polyfills
582 function isArray(obj) {
583 if (Array.isArray) {
584 return Array.isArray(obj);
585 } else {
586 return Object.prototype.toString.call(obj) === '[object Array]';
587 }
588 }
589
590 function isDate(obj) {
591 return Object.prototype.toString.call(obj) === '[object Date]';

Callers 3

json5.jsFile · 0.85
internalStringifyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…