|
Last change
on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago |
|
Added visualizations
|
-
Property mode
set to
100644
|
|
File size:
929 bytes
|
| Line | |
|---|
| 1 | /**
|
|---|
| 2 | * Retrieves the values from an object, including those inherited from its prototype.
|
|---|
| 3 | *
|
|---|
| 4 | * @template T
|
|---|
| 5 | * @param {Record<string, T> | Record<number, T> | ArrayLike<T> | null | undefined} object - The object to query.
|
|---|
| 6 | * @returns {T[]} Returns an array of property values.
|
|---|
| 7 | *
|
|---|
| 8 | * @example
|
|---|
| 9 | * const obj = { a: 1, b: 2, c: 3 };
|
|---|
| 10 | * valuesIn(obj); // => [1, 2, 3]
|
|---|
| 11 | */
|
|---|
| 12 | declare function valuesIn<T>(object: Record<string, T> | Record<number, T> | ArrayLike<T> | null | undefined): T[];
|
|---|
| 13 | /**
|
|---|
| 14 | * Retrieves the values from an object, including those inherited from its prototype.
|
|---|
| 15 | *
|
|---|
| 16 | * @template T
|
|---|
| 17 | * @param {T | null | undefined} object - The object to query.
|
|---|
| 18 | * @returns {Array<T[keyof T]>} Returns an array of property values.
|
|---|
| 19 | *
|
|---|
| 20 | * @example
|
|---|
| 21 | * const obj = { a: 1, b: 2, c: 3 };
|
|---|
| 22 | * valuesIn(obj); // => [1, 2, 3]
|
|---|
| 23 | */
|
|---|
| 24 | declare function valuesIn<T extends object>(object: T | null | undefined): Array<T[keyof T]>;
|
|---|
| 25 |
|
|---|
| 26 | export { valuesIn };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.