Last active
March 28, 2019 05:33
-
-
Save rcdexta/d3122013d1f3df4f4b43a26e5b62c73f to your computer and use it in GitHub Desktop.
compact
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var array = [undefined, 'cat', false, 434, '', 32.0] | |
_.compact(array) | |
array.filter(Boolean) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment