包详细信息

intersection-of

nivrith83MIT1.3.0

Find unique common elements among given arrays

array, array-intersection, common, common-array

自述文件

intersection-of

CircleCI NPM Downloads node License MIT

Find unique common elements among given arrays

Highlights

  • Super Fast

  • Memoized

  • Written in Typescript

  • Async and Sync methods

  • Returns Promise

Usage

Get an array of common unique values that are included in all given arrays


// async

const { intersectionOf } = require('intersection-of');

intersectionOf([1,2,2,3,4], [2,3,6,7])
.then((result) => {
  console.log(result); // [2,3]
});


// sync
const { intersectionOfSync }  = require('intersection-of');

let result = intersectionOfSync([1,2,2,3,4], [2,3,6,7]);
console.log(result) // [2,3]

License

MIT © Nivrith Mandayam Gomatam

更新日志

Changelog

All notable changes to this project will be documented in this file. Dates are displayed in UTC.

Generated by auto-changelog.

v1.3.0

11 July 2019

  • Add Slim Cache as Cache Provider 954384f

v1.2.4

29 June 2019

v1.2.3

29 June 2019

v1.2.2

29 June 2019

v1.2.1

29 June 2019

v1.2.0

29 June 2019

v1.1.0

29 June 2019

  • Fix readme & Memoize Functions 6a77387

v1.0.4

26 June 2019

v1.0.3

26 June 2019

v1.0.2

26 June 2019

  • Clean up dependencies and Add Keywords 928c97f

v1.0.1

26 June 2019