Skip to content

Instantly share code, notes, and snippets.

Michael Bester kimili

Block or report user

Report or block kimili

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
kimili / compact.js
Created Sep 19, 2018
JavaScript Compact
View compact.js
const compact = arr => arr.filter(Boolean);
compact([1, false, 2, '', 3, null, 'abc']); // [1, 2, 3, 'abc']
You can’t perform that action at this time.