Skip to main content
Module

x/rambda/difference.js

Faster and smaller alternative to Ramda
Go to Latest
File
import { includes } from './includes'import { uniq } from './uniq'
export function difference(a, b){ if (arguments.length === 1) return _b => difference(a, _b)
return uniq(a).filter(aInstance => !includes(aInstance, b))}