Add Array.reject
Added
reject
Return all items that don't pass the given truth test. Inverse of Array.filter
.
given.array([{ id: 1, disabled: true }]).reject(item => item.disabled) // []
Return all items that don't pass the given truth test. Inverse of Array.filter
.
given.array([{ id: 1, disabled: true }]).reject(item => item.disabled) // []