array-initial

WebJar for array-initial

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

array-initial
Last Version

Last Version

1.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

array-initial
WebJar for array-initial
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/jonschlinkert/array-initial

Download array-initial

How to add to project

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

Dependencies

compile (2)

Group / Artifact Type Version
org.webjars.npm : array-slice jar [1.0.0,2)
org.webjars.npm : is-number jar [4.0.0,5)

Project Modules

There are no modules declared in this project.

array-initial NPM version

Get all but the last element or last n elements of an array.

Install with npm

npm i array-initial --save

Usage

var initial = require('array-initial');

initial(['a', 'b', 'c', 'd', 'e', 'f']);
//=> ['a', 'b', 'c', 'd', 'e']

initial(['a', 'b', 'c', 'd', 'e', 'f'], 1);
//=> ['a', 'b', 'c', 'd', 'e']

initial(['a', 'b', 'c', 'd', 'e', 'f'], 2);
//=> ['a', 'b', 'c', 'd']

Author

Jon Schlinkert

License

Copyright (c) 2014 Jon Schlinkert
Released under the MIT license


This file was generated by verb on December 12, 2014. To update, run npm i -g verb && verb.

Versions

Version
1.1.0