Function definiteEntriesOf

  • Returns an array of all entry tuples of type [K, NonNullable<T[K]>] in an object T whose values are neither null nor undefined. This can be convenient for enumerating the entries of unknown objects with optional properties (including Dictionarys) without worrying about performing checks against possibly undefined or null values.

    See also caveats outlined in entriesOf.

    Type Parameters

    • T extends object
    • K extends string
    • V extends {}

    Parameters

    Returns [K, V][]