MCPcopy Create free account
hub / github.com/keepfool/vue-tutorials / indexOf$1

Function indexOf$1

01.GettingStarted/js/vue.js:4964–4972  ·  view source on GitHub ↗

* Native Array.indexOf uses strict equal, but in this * case we need to match string/numbers with custom equal. * * @param {Array} arr * @param {*} val

(arr, val)

Source from the content-addressed store, hash-verified

4962 */
4963
4964 function indexOf$1(arr, val) {
4965 var i = arr.length;
4966 while (i--) {
4967 if (looseEqual(arr[i], val)) {
4968 return i;
4969 }
4970 }
4971 return -1;
4972 }
4973
4974 var checkbox = {
4975

Callers 1

vue.jsFile · 0.70

Calls 1

looseEqualFunction · 0.70

Tested by

no test coverage detected