Applies the logical negation operator to the given argument. If the argument is a Promise, it returns a new Promise that resolves to the negation of the resolved value of the argument Promise. If the argument is not a Promise, it returns the negation of the argument.

  • Type Parameters

    • T = Promise<Value>

      The type of the argument and the return value.

    Parameters

    • arg: T

      The argument to apply the logical negation operator.

    Returns T

    • The result of apply the logical negation operator to the argument.