DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
5+4 =
Submit