Tweakr
    Preparing search index...

    Function values

    • Returns an array of the values of an object.

      Type Parameters

      • T extends object

      Parameters

      • obj: T

        The object to extract values from.

      Returns T[keyof T][]

      An array of the object's values.

      const obj = { a: 1, b: 2, c: 3 };
      console.log(values(obj)); // [1, 2, 3]

      1.1.0