3 ms·
Not sure how much you care, but your example for .slice() is wrong. .slice(1,3) will give you elements two and three. You're looking for .slice(0,3)
by cronin101 8y ago
Not sure how much you care, but your example for .slice() is wrong.
.slice(1,3) will give you elements two and three. You're looking for .slice(0,3)