array-unique

WebJar for array-unique

License

License

MIT
GroupId

GroupId

org.webjars.bowergithub.jonschlinkert
ArtifactId

ArtifactId

array-unique
Last Version

Last Version

0.3.2
Release Date

Release Date

Type

Type

jar
Description

Description

array-unique
WebJar for array-unique
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

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

Download array-unique

How to add to project

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

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.

array-unique NPM version NPM downloads Build Status

Remove duplicate values from an array. Fastest ES5 implementation.

Install

Install with npm:

$ npm install --save array-unique

Usage

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

var arr = ['a', 'b', 'c', 'c'];
console.log(unique(arr)) //=> ['a', 'b', 'c']
console.log(arr)         //=> ['a', 'b', 'c']

/* The above modifies the input array. To prevent that at a slight performance cost: */
var unique = require("array-unique").immutable;

var arr = ['a', 'b', 'c', 'c'];
console.log(unique(arr)) //=> ['a', 'b', 'c']
console.log(arr)         //=> ['a', 'b', 'c', 'c']

About

Related projects

  • arr-diff: Returns an array with only the unique values from the first array, by excluding all… more | homepage
  • arr-flatten: Recursively flatten an array or arrays. This is the fastest implementation of array flatten. | homepage
  • arr-map: Faster, node.js focused alternative to JavaScript's native array map. | homepage
  • arr-pluck: Retrieves the value of a specified property from all elements in the collection. | homepage
  • arr-reduce: Fast array reduce that also loops over sparse elements. | homepage
  • arr-union: Combines a list of arrays, returning a single array with unique values, using strict equality… more | homepage

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Building docs

(This document was generated by verb-generate-readme (a verb generator), please don't edit the readme directly. Any changes to the readme must be made in .verb.md.)

To generate the readme and API documentation with verb:

$ npm install -g verb verb-generate-readme && verb

Running tests

Install dev dependencies:

$ npm install -d && npm test

Author

Jon Schlinkert

License

Copyright © 2016, Jon Schlinkert. Released under the MIT license.


This file was generated by verb-generate-readme, v0.1.28, on July 31, 2016.

Versions

Version
0.3.2