@w5s/coreFunctionspickpick Callablepick<T, K>(self: Readonly<T>, keys: readonly K[]): Pick<T, K>Creates a new object by including the specified keys from provided object.@exampleconst object = { foo: true, bar: true, baz: true };pick(object, [ 'foo' ]); // { foo: true, };console.log(object); // > { foo: true, bar: true, baz: true }; (unchanged)Type parametersT: objectK: string | number | symbol
Creates a new object by including the specified keys from provided object.