Link to home
Start Free TrialLog in
Avatar of mikha
mikhaFlag for United States of America

asked on

what is the best way to select n number of items from a json data array , just using javascript.

what is the best way to select n number of items from a json data array , just using javascript.
ASKER CERTIFIED SOLUTION
Avatar of leakim971
leakim971
Flag of Guadeloupe image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mikha

ASKER

@leakim - one follow up question on the solution . if the original array has less than 10 items in it , will it throw an error ?
will it throw an error ?
No
Avatar of mikha

ASKER

@leakin - thanks