Function isBlank

  • Checks if the string is blank (has no non-space content).

    Since

    11.0.0

    Returns

    If the string is blank.

    Example

    isBlank("")
    // => true

    isBlank(" ")
    // => true

    isBlank(" foo ")
    // => false

    Parameters

    • string: string

      String to use.

    Returns boolean

Generated using TypeDoc