Posts by Bruno Martins • 1 point
1 post
-
0
votes5
answers3692
viewsA: create "contain" function that says if an array contains a certain element and returns true
function contem (array,valor){ var aux=0; for (var i=0 ;i<array.length;i++){ return (array.indexOf(valor)!=(-1)); } }