Array.from Array.from (ES2015, but shimmable) creates an array from an array-like object, optionally passing the entries through a mapping function first.
Entonces, por ejemplo, si Array.from (ES2015 +, pero se puede rellenar fácilmente) crea una matriz a partir de un objeto similar a una matriz, opcionalmente pasando las entradas a través de una función de mapeo primero.
Take Array.prototype.slice, for example, which you want to use for converting an array-like object to a real array.
Tomando Array.prototype.slice, por ejemplo, el cual se desearía utilizar para convertir un objeto tipo array a un arreglo real.
Summary An Array-like object corresponding to the arguments passed to a function.
The apply() method calls a function with a given this value and arguments provided as an array (or an array-like object).
El método apply() invoca una determinada función asignando explícitamente el objeto this y un array o similar (array like object) como parámetros (argumentos) para dicha función.
The other way (introduced in ECMAScript 5) is to treat the string as an array-like object, where individual characters correspond to a numerical index
El otro modo es tratar la cadena como un arreglo (vector), donde cada índice se corresponde con un carácter individual
The join() method joins all elements of an array (or an array-like object) into a string.
Ver también Traducción en curso El método sort() ordena los elementos de un array localmente y devuelve el array.
An array-like object, specifying the arguments with which fun should be called, or null or undefined if no arguments should be provided to the function.
Exemplele au rolul de a te ajuta să traduci cuvinte sau expresii corect si adaptat la context. Nu sunt selectate sau validate manual, așadar pot conține termeni inadecvați. Te rugăm să raportezi exemplele pe care le consideri inadecvate. Traducerile vulgare sau colocviale sunt în general marcate cu roșu sau cu portocaliu.