- Preparing search index...
- The search index is not available
Documentation
- pick<T, Keys>(obj: T, keys: Keys[]): { [ key in string | number | symbol]: T[key] }
-
Type Parameters
-
T extends {
[key: string]: unknown;
}
-
Keys extends string | number | symbol
Returns { [ key in string | number | symbol]: T[key] }
Returns a new object with only the specified keys from the input object.
Returns
Example