reduce-flatten

WebJar for reduce-flatten

Лицензия

Лицензия

MIT
Группа

Группа

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

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

reduce-flatten
Последняя версия

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

2.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

reduce-flatten
WebJar for reduce-flatten
Ссылка на сайт

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

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

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

https://github.com/75lb/reduce-flatten

Скачать reduce-flatten

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

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

Зависимости

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

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

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

view on npm npm module downloads Build Status Dependency Status js-standard-style

reduce-flatten

Isomorphic map-reduce function to flatten an array into the supplied array.

Example

const flatten = require('reduce-flatten')

flatten()

Kind: Exported function
Example

> numbers = [ 1, 2, [ 3, 4 ], 5 ]
> numbers.reduce(flatten, [])
[ 1, 2, 3, 4, 5 ]

Load anywhere

This library is compatible with Node.js, the Web and any style of module loader. It can be loaded anywhere, natively without transpilation.

Node.js:

const arrayify = require('reduce-flatten')

Within Node.js with ECMAScript Module support enabled:

import arrayify from 'reduce-flatten'

Within an modern browser ECMAScript Module:

import arrayify from './node_modules/reduce-flatten/index.mjs'

Old browser (adds window.flatten):

<script nomodule src="./node_modules/reduce-flatten/dist/index.js"></script>

© 2016-19 Lloyd Brookes <75pound@gmail.com>. Documented by jsdoc-to-markdown.

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

Версия
2.0.0
1.0.1