Socket
Book a DemoInstallSign in
Socket

@sets/intersection

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sets/intersection

Return the intersection between two sets.

latest
npmnpm
Version
1.0.1
Version published
Weekly downloads
591
173.61%
Maintainers
1
Weekly downloads
 
Created
Source

@sets/intersection

Return the intersection between two sets.

const intersection = require('@sets/intersection')

console.log(intersection(
  new Set('hello'),
  new Set('world')
)) // "lo"

Installation

$ npm install --save @sets/intersection

API

intersection(lhs, rhs) -> Set

Return the intersection between the sets represented by lhs and rhs. The resulting set will contain all elements that appear in both lhs and rhs.

License

MIT

FAQs

Package last updated on 15 May 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts