Documentation for can.List.unshift.apply is not correct #2262

Closed
mickmcgrath13 opened this Issue Feb 12, 2016 · 0 comments

Comments

Projects
None yet
3 participants
@mickmcgrath13
Contributor

mickmcgrath13 commented Feb 12, 2016

On https://canjs.com/docs/can.List.prototype.unshift.html

The docs say "If you have an array you want to concatenate to the beginning of the List, you can use apply:"

list.push.apply(list, names);

It should be

list.unshift.apply(list,names);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment