template-clean
Template literal tag function to replace null
and undefined
values with an empty string.
Example
> clean = > const word = 'something'> const nothing = null > `a word: . Nothing: `'a word: something. Nothing: null' > clean`a word: . Nothing: `'a word: something. Nothing: '
clean(strings, ...expressions) ⏏
Kind: Exported function
Param | Type |
---|---|
strings | Array.<string> |
...expressions | any |
© 2015-17 Lloyd Brookes <75pound@gmail.com>. Documented by jsdoc-to-markdown.