new-array

WebJar for new-array

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

new-array
Последняя версия

Последняя версия

1.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

new-array
WebJar for new-array
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/mattdesl/new-array

Скачать new-array

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/new-array/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>new-array</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/new-array/
implementation 'org.webjars.npm:new-array:1.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/new-array/
implementation ("org.webjars.npm:new-array:1.0.0")
'org.webjars.npm:new-array:jar:1.0.0'
<dependency org="org.webjars.npm" name="new-array" rev="1.0.0">
  <artifact name="new-array" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='new-array', version='1.0.0')
)
libraryDependencies += "org.webjars.npm" % "new-array" % "1.0.0"
[org.webjars.npm/new-array "1.0.0"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

new-array

stable

Creates a new dense array with the given size, optionally filled with a specified value.

var array = require('new-array')

array(2)
// > [ undefined, undefined ]

array(4, 0)
// > [ 0, 0, 0, 0 ]

array()
// > []

array(2).map((x, i) => i)
// > [0, 1]

Primarily motivated by the fact that new Array(n) produces an array of holes that does not play well with methods like Array#map().

Usage

NPM

arr = newArray(n[, value])

Returns a new dense array with length n (default 0), where each element is set to value (or undefined).

See Also

License

MIT, see LICENSE.md for details.

Версии библиотеки

Версия
1.0.0