1 | /**
|
2 | * Creates an object composed of the picked `object` properties.
|
3 | *
|
4 | * @param {Object} object The source object.
|
5 | * @param {...(string[])} [paths] The property paths to pick.
|
6 | * @returns {Object} Returns the new object.
|
7 | * @example
|
8 | *
|
9 | * var object = { 'a': 1, 'b': '2', 'c': 3 };
|
10 | * pick(object, ['a', 'c']); // => { 'a': 1, 'c': 3 }
|
11 | */
|
12 | export interface ObjectType<T> {
|
13 | [key: string]: T;
|
14 | }
|
15 | declare const _default: <T>(object: ObjectType<T>, keys: string[]) => ObjectType<T>;
|
16 | export default _default;
|