Function has

  • A value that is not empty.

    Type Parameters

    • T

    Parameters

    • value: T

    Returns value is T

    See

    test for has

    Example:

    has({}) // produces: false
    has({I: 'am not empty'}) // produces: true

    has([]) // produces: false
    has([1, 2, 3]) // produces: true

    has('') // produces: false
    has('not empty') // produces: true

    has(NaN) // produces: false
    has(0) // produces: true