1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
| let a = [1,2,3] a.concat(4,5)
let a = [1,2,3] a.join()
let a = [1,2,3,4] a.shift() a
let a = [1,2,3,4] a.unshift(6) a
let a = [1,2,3] a.slice(1) let a = [1,2,3] a.slice(1,2)
let a = [1,2,3,4,5] a.splice(1,1) let a = [1,2,3,4,5] a.splice(1,1,'hzzly') a
const fruits = ["Banana", "Orange", "Apple", "Mango"] fruits.entries()
const ages = [32, 33, 16, 40] ages.every((val, index) => val >= 18)
const ages = [32, 33, 16, 40] ages.filter((val, index) => val >= 18) ages.filter((val, index) => val >= 18).length
const ages = [32, 33, 16, 40] ages.find((val, index) => val >= 18)
const ages = [32, 33, 16, 40] ages.findIndex((val, index) => val >= 18) ages.findIndex((val, index) => val === 16) ages.findIndex((val, index) => val > 40)
const ages = [32, 33, 16, 40] const arr = ages.forEach((val, index) => { console.log(val) return val + 10 })
const ages = [32, 33, 16, 40] const arr = ages.map((val, index) => { console.log(val) return val + 10 })
|