Returns the default value if the given text is empty, or the text self if it is not empty
Optional
the text to check
the default value placeholder
the default value if the given text is empty, or the text self if it is not empty
defaultIfEmpty(undefined, 'foobar'); // 'foobar' Copy
defaultIfEmpty(undefined, 'foobar'); // 'foobar'
Returns the default value if the given text is empty, or the text self if it is not empty