Function definiteKeysOf

  • Returns an array of all string keys in an object of type T whose values are neither null nor undefined. This can be convenient for enumerating the keys of definitely assigned properties in an object or Dictionary.

    See also caveats outlined in keysOf.

    Type Parameters

    • T extends object

    Parameters

    Returns KeyOf<T>[]