function remove(arr, item) { let rs = [] arr.forEach(v => { if (v != item) { rs.push(v) } }) return rs }