Basic usage

Given a list of items, return a new list with all items that are not falsy.

import { sift } from 'radash'

const fish = ['salmon', null, false, NaN, 'sockeye', 'bass']

sift(fish) // => ['salmon', 'sockeye', 'bass']

Testing

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

Source

See the source for _.sift on GitHub.