0
Get the first n items of an array
0 Comments
const items = [1,2,3,4,5,6]; const firstThreeItems = items.slice(0, 3);