array/diff
v0.0.1
0.0.1
Collaborators
Gravatar for undefined
0
MIT
PUBLIC
14
0     DEPENDENCIES
BuildPass

Computes the difference between two array references.

Use array/diff in your project
npm i @bit/bit.utils.array.diff

diff (firstArray:[], secondArray:[]) : []

Computes the difference between two array references.

Example

diff([1,2,3], [1,2,3,4,5]) // => [4,5]

Arguments

firstArray: []

secondArray: []

Returns

[]

returns an array representing the difference between the two arrays

Test Summary


#array/diff() should return an empty array as both arrays are equalPass
#array/diff() should return the difference between the two arrays (1, 5, 6)Pass