-
Notifications
You must be signed in to change notification settings - Fork 0
array.Function.compact
soetas edited this page Nov 30, 2024
·
2 revisions
estdlib v0.1.2 / array / compact
compact(
array
):void
Creates an array with all falsey values removed
• array: unknown
[]
The array to compact
void
- Returns the new array of filtered values
0.1.2
compact([0, 1, false, 2, '', 3])
// => [1, 2, 3]
Docs made with by typedoc、typedoc-plugin-markdown & typedoc-github-wiki-theme.