Basic usage

Given two arrays, returns an array of all items that exist in the first array but do not exist in the second array.

import { diff } from 'radash'

const oldWorldGods = ['ra', 'zeus']
const newWorldGods = ['vishnu', 'zeus']

diff(oldWorldGods, newWorldGods) // => ['ra']

Testing

This _.diff function is 100% covered by tests. See them and contribute at GitHub.

Source

See the source for _.diff on GitHub.