<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>21126</bug_id>
          
          <creation_ts>2013-02-26 12:20:58 +0000</creation_ts>
          <short_desc>Array.concatArraysToArray(Array,Array...) - merge multiple arrays</short_desc>
          <delta_ts>2014-06-21 12:51:17 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>JavaScript</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jim Michaels">jmichae3</reporter>
          <assigned_to name="Mathias Bynens">mathias</assigned_to>
          <cc>mike</cc>
          
          <qa_contact>sideshowbarker+javascript</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>83720</commentid>
    <comment_count>0</comment_count>
    <who name="Jim Michaels">jmichae3</who>
    <bug_when>2013-02-26 12:20:58 +0000</bug_when>
    <thetext>there is currently nothing in javascript to merge 2 arrays into 1 array (in sequence).
so I propose 
Array.concatArraysToArray([Array...])

I don&apos;t know how javascript works internally with arrays, so I don&apos;t know how the specification should look.  but the returned array should contain each argument&apos;s elements, in sequence.

Array.concat([item...]) won&apos;t do what I am looking for, it ruins arrays. maybe this should be a bug report?

one would hope you could do
var arr = Array();
arr = arr.concat(Array(1,2),Array(4,&quot;jack&quot;),Array(5,9,11));
and end up with arr containing Array(1,2,4,&quot;jack&quot;,5,9,11), but that&apos;s not what you get. but this is what I am proposing.
I tried all the functions that looked promising. none work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>108170</commentid>
    <comment_count>1</comment_count>
    <who name="Mathias Bynens">mathias</who>
    <bug_when>2014-06-21 12:51:17 +0000</bug_when>
    <thetext>This is outside the scope of the JavaScript / Web ECMAScript spec. See &lt;http://javascript.spec.whatwg.org/#goals&gt;.

To propose new features to the ECMAScript language, please file a bug on https://bugs.ecmascript.org/.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>