Array.from
console.log(Array.from('1234'));
Array.isArray
Array.isArray(['1'])
Array.concat
let arr = ['1','2','3']
let arr2 = ['4','5','6','7']
console.log(arr.concat(arr2))
Array.copyWithin
let arr = ['0','1','2','3']
console.log(arr.copyWithin(2,1)) let arr = ['0','1','2','3']
console.log(arr.copyWithin(2,10))
Array.entries
let arr = ['0','1','2','3']
let arr2 = arr.entries()
console.log(arr2.next())
console.log(arr2.next())
console.log(arr2.next())
console.log(arr2.next())
console.log(arr2.next())
Array.every
let arr = ['0','1','2','3']
let arr2 = arr.every((v)=>{return v < 4
})
console.log(arr2);
Array.fill
let arr = ['0','1','2','3']
console.log(arr.fill('4')); let arr = ['0','1','2','3']
console.log(arr.fill('4',1)); let arr = ['0','1','2','3']
console.log(arr.fill('4',1,3));
Array.filter
let arr = ['0','1','2','3']
let arr2 = arr.filter(v=>{return v!=='1'
})
console.log(arr2);
Array.find
let arr = ['a','b','c','d']
let arr2 = arr.find(v=>{return v == 'c'
})
console.log(arr2);
Array.findIndex
let arr = ['a','b','c','d']
let arr2 = arr.findIndex(v=>{return v == 'c'
})
console.log(arr2);
Array.findLast
let arr = ['a','b','c','d','a','b','c','d']
let arr2 = arr.findLast(v=>{return v == 'c'
})
console.log(arr2);
Array.findLastIndex
let arr = ['a','b','c','d','a','b','c','d']
let arr2 = arr.findLastIndex(v=>{return v == 'c'
})
console.log(arr2);
Array.forEach
let arr = ['a','b','c','d']
arr.forEach((v,i)=>{console.log(v,i);
})
Array.flat
let arr = ['a',['b',['c',['d',['e',['f']]]]]]
console.log(arr.flat());
console.log(arr.flat(2));
console.log(arr.flat(3));
console.log(arr.flat(Infinity));
Array.includes
let arr = ['a','b','c','d']console.log(arr.includes('b'))
Array.indexOf
let arr = ['a','b','c','d']console.log(arr.indexOf('a')) console.log(arr.indexOf('ab'))
Array.isArray
let arr = ['a','b','c','d']console.log(Array.isArray(arr))
Array.join
let arr = ['a','b','c','d']console.log(arr.join(','))
Array.lastIndexOf
let arr = ['a','b','c','a','b','c']console.log(arr.lastIndexOf('b')) console.log(arr.lastIndexOf('1'))
Array.length
let arr = ['a','b','c']console.log(arr.length)
Array.map
let arr = ['a','b','c']let arr2 = arr.map(v=>{return v+'1'})console.log(arr2)
Array.pop
let arr = ['a','b','c']console.log(arr.pop()) console.log(arr);
Array.push
```csharplet arr = ['a','b','c']console.log(arr.push('d')) console.log(arr);
Array.reduce
let arr = [1,2,3,4,5,6]
arr.reduce((a,b)=>{console.log(a,b);return a+b
})
let arr = [1,2,3,4,5,6]
arr.reduce((a,b)=>{console.log(a,b);return a+b
},10)
Array.reverse
let arr = [1,2,3,4,5,6]
console.log(arr.reverse())
Array.shift
let arr = [1,2,3,4,5,6]
console.log(arr.shift())
console.log(arr);
Array.slice
let arr = [1,2,3,4,5,6]
console.log(arr.slice())
console.log(arr.slice(2))
console.log(arr.slice(2,4))
Array.some
let arr = [1,2,3,4,5,6]
let arr2 = arr.some(v=>{return v == 3
})
console.log(arr2);
Array.sort
let arr = ['a','d','e','b','c','f']
let arr2 = arr.sort()
console.log(arr2); let arr = [1,2,6,7,8,3,4,5,9,10]
let arr2 = arr.sort((a,b)=>{return a-b
})
console.log(arr2);
Array.splice
let arr = [1,2,3,4,5,6,7,8,9,10]
arr.splice(3)
arr.splice(3,6)
arr.splice(3,6,'a')
Array.unshift
let arr = [1,2,3]
arr.unshift(0)
console.log(arr);