On Jun 23, 2013, at 21:21 , Allen Wirfs-Brock <al...@wirfs-brock.com> wrote:
> See http://wiki.ecmascript.org/doku.php?id=strawman:array_fill_and_move for a > strawman proposal for two new Array methods. These are proposed for > inclusion in ES6. Array.prototype.move = function move(target=0,source=0, count=this.length-source) Is the case of moving trailing elements somewhere else very common? If not, then I’d define the parameters in this order: source, count, target. Rationale: easier to memorize. -- Dr. Axel Rauschmayer a...@rauschma.de home: rauschma.de twitter: twitter.com/rauschma blog: 2ality.com
_______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss