ser diferente de todos os itens do array javascript code example
Example 1: js get elements in array from x to y
arr.slice([início[,fim]])
Example 2: javascript atualize array
let yourArray = [1,2,3,4,5];
// if you want to change " 3 " for " 6 " you must count the indexs
// item | 1 2 3 4 5
// index| 0 1 2 3 4
yourArray[2] = 6
// yourArray -> [1,2,6,4,5]