SyntaxFix
Write A Post
Hire A Developer
Questions
To get the first n elements of an array, use
n
array.slice(0, n);