Skip to content

jefflembeck/array-intersectional-complement-linear

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

array-intersectional-complement-linear

Sometimes you have two arrays. Sometimes you want to grab the items in those arrays that are not shared. Sometimes you want this in linear time.

NOTE: Linear time claim is implementation dependent.

Requires node 4 or above due to use of es6

How to use

const aic = require('array-intersectional-complement-linear');

const a = [1, 2, 3, 4, 5];
const b = [2, 3, 4, 5, 6];

aic(a, b);
// -> [1, 6]

Changelog

v1.0.0 - First stab at this

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published