removeEmptyStrings

Remove empty strings from strings array.

Install

Install all functions of strman

yarn add strman

or just the removeEmptyStrings function

yarn add strman.removeemptystrings

Usage

import { removeEmptyStrings } from 'strman'
// OR
import removeEmptyStrings from 'strman.removeemptystrings'
Parameters:
Name Type Description
strings Array.<String>

Array of strings that will be cleaned.

Source:
Returns:

Array of strings without empty strings.

Type
Array.<String>
Example
const titles = ['A Javascript string manipulation library.', null, undefined, '', ' ']
removeEmptyStrings(titles)
// => ['A Javascript string manipulation library.']