Linq has a convenient operator method called Take() to return a given number of elements in anything that implements IEnumerable. Is there anything
Take()
IEnumerable
There is a slice method
array.slice(0, 4);
Will return the first four elements.
Don't forget to assign it back to your variable if you want to discard the other values.
Note: This is just regular javascript, no need for jquery.