arrify

WebJar for arrify

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

arrify
Last Version

Last Version

2.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

arrify
WebJar for arrify
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/sindresorhus/arrify

Download arrify

How to add to project

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

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

arrify Build Status

Convert a value to an array

Install

$ npm install arrify

Usage

const arrify = require('arrify');

arrify('๐Ÿฆ„');
//=> ['๐Ÿฆ„']

arrify(['๐Ÿฆ„']);
//=> ['๐Ÿฆ„']

arrify(new Set(['๐Ÿฆ„']));
//=> ['๐Ÿฆ„']

arrify(null);
//=> []

arrify(undefined);
//=> []

Specifying null or undefined results in an empty array.


Get professional support for this package with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.

Versions

Version
2.0.1
1.0.1
1.0.0