Closed Emperor01 closed 6 years ago
'use strict';
var collection = ["test", 2, 1.5, false];
function findarrvalue (arr, value) {
for (var i = 0; i <= arr.length - 1; i++) {
if (arr[i] == value) {return i}; }
return -1;
}
findarrvalue(collection, false);
'use strict';
var collection = ["test", 2, 1.5, false];
function findarrvalue (arr, value) {
for (var i = 0; i <= arr.length - 1; i++) {
return -1;
}
findarrvalue(collection, false);