JavaScriptã§é åã®ã¯ãã¼ã³ãä½æãããã¨ãã¦ãæ©ãã§ããæ¹ãããã£ãããããã§ããã 以ä¸ã®ããã«ãfor ã«ã¼ããå帰ãªã³ã¼ããææ¸ãããå¿ è¦ã¯ãªãã¦ãArray.concat() ã§é åã®ã¯ãã¼ã³ã¯ä½æã§ãã¾ãã Array.prototype.clone = function(){ return Array.apply(null,this) } Array.prototype.clone = function() { if ( this[0].constructor == Array ) { var ar, n; ar = new Array( this.length ); for ( n = 0; n < ar.length; n++ ) { ar[n] = this[n].clone(); } return ar; } return Array.apply( null,
{{#tags}}- {{label}}
{{/tags}}