Add Array#insert
Reported by Joe Gornick | February 4th, 2009 @ 01:05 AM
function insert(index) {
var args = slice.call(arguments, 1);
this.length = Math.max(this.length, index);
index = index < 0 ? this.length : index;
if (args.length > 1) splice.apply(this, [index, 0].concat(args));
else splice.call(index, 0, args[0]);
return this;
}
Comments and changes to this ticket
-
Joe Gornick February 7th, 2009 @ 02:55 AM
- State changed from new to duplicate
This has been added to #15
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
JavaScript frameworks share similar features and functionality such as DOM manipulation, event registration, and CSS selector engines. FuseJS attempts to incorporate the strengths of these frameworks into one stable, efficient, and optimized core JavaScript framework.