UNPKG

@stdlib/assert

Version:

Standard assertion utilities.

28 lines (21 loc) 497 B
{{alias}}( value ) Tests if a value is a blank string (i.e., an empty string or a string consisting only of whitespace characters). Parameters ---------- value: any Value to test. Returns ------- bool: boolean Boolean indicating whether value is a blank string. Examples -------- > var bool = {{alias}}( ' ' ) true > bool = {{alias}}( 'beep' ) false > bool = {{alias}}( null ) false See Also --------