Function definiteValuesOf

  • Returns an array of all values of type T in an object T for values that are neither null nor undefined. This can be convenient for enumerating the values of unknown objects with optional properties (including Dictionarys) without worrying about performing checks against possibly undefined or null values.

    Type Parameters

    • T extends object

    Parameters

    Returns NonNullable<T[KeyOf<T>]>[]