Link to home
Start Free TrialLog in
Avatar of curiouswebster
curiouswebsterFlag for United States of America

asked on

Need to shorten an array in JavaScript

When I take off the first item in the array, all I really do is shift the values up one index. Is there an easier way?

Anyway, I have this coded and it works. I would like to shorten the array by 1, so that calling the length property will be correct. How can I do that?

Thanks!
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 curiouswebster

ASKER

Thanks!