MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / indexOf

Function indexOf

libs/leaflet/leaflet-src.js:200–205  ·  view source on GitHub ↗
(array, el)

Source from the content-addressed store, hash-verified

198 // @function indexOf(array: Array, el: Object): Number
199 // Compatibility polyfill for [Array.prototype.indexOf](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf)
200 function indexOf(array, el) {
201 for (var i = 0; i < array.length; i++) {
202 if (array[i] === el) { return i; }
203 }
204 return -1;
205 }
206
207 // @property emptyImageUrl: String
208 // Data URI string containing a base64-encoded empty GIF image.

Callers 2

offFunction · 0.70
leaflet-src.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected