FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [View Raw Code]   [Original HTTPS Page]

rattail/docs/array/remove-array-empty.md at dev · varletjs/rattail · GitHub

Latest commit

 

History

History
23 lines (15 loc) · 383 Bytes

File metadata and controls

23 lines (15 loc) · 383 Bytes

removeArrayEmpty

Removes null, undefined, or empty string ('') values from an array.

Usage

import { removeArrayEmpty } from 'rattail'

removeArrayEmpty([1, null, undefined, '', 3]) // return [1, 3]

Arguments

Arg Type Defaults
arr Array

Return

Type
Array

Back | FazBrowse Home | New Git URL