pulusatapathy

all examples

Oct 25th, 2020
716
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
  2. const _arr = ["dhvfd"];
  3.  
  4. // arr.forEach(e => console.log(e))
  5. // let c = arr.includes(1, 0)
  6. // let c = arr.includes(1)
  7.  
  8. // let newArray = arr.filter(e => e > 5);
  9.  
  10.  
  11.  
  12. // let newArray = arr.map(e => e + 1).filter(e => e < 5);
  13.  
  14.  
  15. // let newArray = arr.reduce((a, b) => a + b, 10)
  16.  
  17. // let xx = arr.some(a => a > 5);
  18.  
  19.  
  20.  
  21.  
  22. // let zz = arr.sort((a, b) => { return b - a; })
  23.  
  24.  
  25.  
  26. // let c = "sndcs";
  27. // z = Array.of(c);
  28.  
  29.  
  30.  
  31. let c = arr.fill(1 + "1")
  32.  
RAW Paste Data