Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
- const _arr = ["dhvfd"];
- // arr.forEach(e => console.log(e))
- // let c = arr.includes(1, 0)
- // let c = arr.includes(1)
- // let newArray = arr.filter(e => e > 5);
- // let newArray = arr.map(e => e + 1).filter(e => e < 5);
- // let newArray = arr.reduce((a, b) => a + b, 10)
- // let xx = arr.some(a => a > 5);
- // let zz = arr.sort((a, b) => { return b - a; })
- // let c = "sndcs";
- // z = Array.of(c);
- let c = arr.fill(1 + "1")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement