Const
The list of values
Returns the first element which is not empty. Returns empty if all are empty.
Used for formatting string to echo standard, with - as separator. Returns - if the joined string is empty. Will handle undefined as input argument.
Rest
...args: (undefined | string)[]{string}
Returns true if the specified string is undefined, empty, contains only white-spaces, or contains double quotes ("").
Optional
value: stringThe specific value to check.
Returns true if the string is undefined, empty, contains only white-spaces, or contains double quotes ("").
Joins all nonEmpty elements into one string with the optional separator (defaults to 1 space).
The elements to join
Optional
separator: stringOptional separator (defaults to 1 space).
All none empty values as one string. Returns empty if all elements are empty.
Returns an empty string if the string isNullOrEmpty, otherwise returns original string.
Optional
value: stringThe string to check.
Returns an empty string if the string isNullOrEmpty, otherwise returns original string.
Trims a string based on a given length. If the string is longer than the given length, it adds '...' at the end.
Returns the trimmed string with '...' at the end, if the string is longer than the given length. If not, returns the original string.
Generated using TypeDoc
Returns the first element which is not empty. Returns empty if all are empty.