Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to limit the number of items from an array in javascript

arr.slice(0,3)
// with 3 being the length of the array you desire
 
PREVIOUS NEXT
Tagged: #limit #number #items #array #javascript
ADD COMMENT
Topic
Name
5+4 =