708 B
708 B
title | localeTitle |
---|---|
Array of | Matriz de |
Matriz de
O método Array.of () cria uma nova ocorrência de Array com um número variável de argumentos, independentemente do número ou tipo dos argumentos.
Sintaxe:
Array.of(element0[, element1[, ...[, elementN]]])
Exemplo
Array.of(7); // [7] - creates an array with a single element
Array.of(1, 2, 3); // [1, 2, 3]
Array(7); // [ , , , , , , ] - creates an empty array with a length property of 7
Array(1, 2, 3); // [1, 2, 3]
Mais Informações:
Para mais informações, visite MDN