The object whose values should be returned.
An iterable that yields all the values of the given object.
This function uses the Object.values()
method to get all the values of the object and then yields them one by one.
V - The type of the values in the object.
const obj = { a: 1, b: 2, c: 3 };
const values = objValues(obj);
for (const value of values) {
//=> {value}
}
// Output:
// 1
// 2
// 3
Generated using TypeDoc
Returns an iterable of the values of the given object.