Function objValuesArray

  • Returns an array containing the values of the given object.

    Type Parameters

    • V

    Parameters

    • obj: Record<ObjectKey, V>

      The object whose values will be extracted.

    Returns V[]

    An array of the values of the object.

    Remarks

    This function is a part of Object Utilities.

    Typeparam

    V - The type of values in the object.

    Example

    const obj = { a: 1, b: 2, c: 3 };
    objValuesArray(obj);
    //=> [1, 2, 3]

Generated using TypeDoc