Function not

  • Will negate any boolean or truthy or falsy value.

    Example:

    not(true) // produces: false
    not(false) // produces: true

    Parameters

    • value: unknown

    Returns boolean