Yngvarr

Generation

generate functionFri, 14 Apr 2023

search in array

function search(array, value) { for(var i=0; i<array.length; i++) { if(array[i] == value) { return i; } } return -1 }

Javascript
Generate More

Questions about programming?Chat with your personal AI assistant