Skip to content

Add Array.reject

Compare
Choose a tag to compare
@MZanggl MZanggl released this 15 Nov 11:00
· 50 commits to latest since this release

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) // []