array-intersect

WebJar for array-intersect

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

array-intersect
Last Version

Last Version

0.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

array-intersect
WebJar for array-intersect
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/callmecavs/array-intersect

Download array-intersect

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/array-intersect/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>array-intersect</artifactId>
    <version>0.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/array-intersect/
implementation 'org.webjars.npm:array-intersect:0.0.1'
// https://jarcasting.com/artifacts/org.webjars.npm/array-intersect/
implementation ("org.webjars.npm:array-intersect:0.0.1")
'org.webjars.npm:array-intersect:jar:0.0.1'
<dependency org="org.webjars.npm" name="array-intersect" rev="0.0.1">
  <artifact name="array-intersect" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='array-intersect', version='0.0.1')
)
libraryDependencies += "org.webjars.npm" % "array-intersect" % "0.0.1"
[org.webjars.npm/array-intersect "0.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.

array-intersect

array-intersect on Travis array-intersect on NPM array-intersect Downloads on NPM Standard JavaScript Style

Install

$ npm i array-intersect --save

Use

Pass any number of arrays as arguments.

Expects that:

import intersect from 'array-intersect'

const simple = intersect(
  [1, 2, 3],
  [2, 3, 4]
)

const complex = intersect(
  [0, 1, 2, 3],
  [1, 2, 3, 4],
  [2, 3, 4, 5]
)

console.log(simple)            // [2, 3]
console.log(complex)           // [2, 3]

Browser Support

Requires support for ES5 Array Methods.

License

MIT. © 2018 Michael Cavalea

Versions

Version
0.0.1