Library API
    Preparing search index...

    Function ownValues

    • Returns an array of all enumerable property values for an object.

      Type Parameters

      Parameters

      • json: T

        The object to extract values from

      • all: boolean = false

        Whether to include values from the prototype chain

      Returns ValueOf<T>[]

      An array of property values

      const values = ownValues({ a: 1, b: 2 });