MCPcopy
hub / github.com/tdewolff/minify / indexOf

Function indexOf

_benchmarks/sample_echarts.js:305–317  ·  view source on GitHub ↗
(array, value)

Source from the content-addressed store, hash-verified

303 return document.createElement('canvas');
304 };
305 function indexOf(array, value) {
306 if (array) {
307 if (array.indexOf) {
308 return array.indexOf(value);
309 }
310 for (var i = 0, len = array.length; i < len; i++) {
311 if (array[i] === value) {
312 return i;
313 }
314 }
315 }
316 return -1;
317 }
318 function inherits(clazz, baseClazz) {
319 var clazzPrototype = clazz.prototype;
320 function F() { }

Callers 15

sample_echarts.jsFile · 0.70
animateToShallowFunction · 0.70
preParseFinderFunction · 0.70
makeStyleMapperFunction · 0.70
createBlurDefaultStateFunction · 0.70
makeDepndencyGraphFunction · 0.70
getAvailableDependenciesFunction · 0.70
getDependenciesFunction · 0.70
useFunction · 0.70
checkPropInLinkFunction · 0.70
retrieveTargetInfoFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…