array-ify

WebJar for array-ify

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

array-ify
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

array-ify
WebJar for array-ify
Project URL

Project URL

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

Source Code Management

https://github.com/stevemao/array-ify

Download array-ify

How to add to project

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

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.

NPM version Build Status Dependency Status Coverage Status

Turn anything into an array

Install

$ npm install --save array-ify

Usage

var arrayify = require('array-ify');

arrayify('unicorn');
//=> ['unicorn']

arrayify(['unicorn']);
//=> ['unicorn']

arrayify(null);
//=> [null]

arrayify(undefined);
//=> [undefined]

Related

  • arrify - Convert a value to an array

The difference that is this module does NOT turn null or undefined to an empty array.

License

MIT © Steve Mao

Versions

Version
1.0.0