You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
function arrayIndexOf (list, val) {
|
|
if (list.indexOf) {
|
|
return list.indexOf(val)
|
|
}
|
|
for (var index = 0, len = list.length; index < len; index++) {
|
|
if (val === list[index]) {
|
|
return index
|
|
}
|
|
}
|
|
}
|
|
|
|
module.exports = arrayIndexOf
|
|
|