Hi Amit, These are called ‘Generics’ and are available in Firefox as of JavaScript 1.6 - see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array#Array_generic_methods <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array#Array_generic_methods>
Please don’t rely on them being available cross-browser, but they are quite easy to shim: a quick duckduckgo search took me to https://github.com/plusdude/array-generics <https://github.com/plusdude/array-generics>, which seems to get the job done. Hope that helps, Mike. > On 21 Jul 2015, at 10:42, Amit Zur <amit....@capriza.com> wrote: > > Hi, > > I've noticed that Array.concat is defined in Firefox (in addition to > Array.prototype.concat). > I couldn't find any reference for this in MDN. > It seems to work as expected, accepting any number of arrays as arguments and > concatenating them. > But is this a standard method of the Array constructor? > > Thanks, > Amit > _______________________________________________ > dev-platform mailing list > dev-platform@lists.mozilla.org > https://lists.mozilla.org/listinfo/dev-platform _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform