Tuesday 12 February 2013

Javascript, clone array


   

Jiggery pokery to copy the data, useful, but not here
    http://stackoverflow.com/questions/3865139/cast-javascript-object-to-array-how-to#answer-3865808
   
    var d = $.extend(true,{},arrel);
    d.length = arrel.length;
    var dd = Array.prototype.slice.call(d);