showing results for - "array map limit javascript"
Valerio
13 May 2019
1let array = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
2
3var arrayMap = array
4  .slice(0, 4) //this remove bettwen array elements
5  // or uou can use .slice(1) it will remove everything that is smaller than the array element
6
7  .map((x) => array[x])
8  .join(", ")
9
10console.log(arrayMap) //will return 2, 3, 4, 5
11
12// i hope it helped
13
14