Skip to content

sift

Given a list returns a new list with only truthy values.

Usage

sift([0, 1, undefined, null, 2, false, 3, ""]);
// => [1, 2, 3]

Installation

Terminal window
npx atmx add helper sift