Skip to content

Commit

Permalink
docs(pick): PropertyKey typo and fix spacing (#640)
Browse files Browse the repository at this point in the history
  • Loading branch information
tooooo1 authored Oct 3, 2024
1 parent 57155d7 commit 04d903e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/compat/object/pick.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function pick<T extends Record<string, any>, K extends keyof T>(obj: T, k
* @template T - The type of object.
* @param {T | null | undefined} obj - The object to pick keys from.
* @param {...any} keys
* @param {PropertyKey | PropertyKey[] | ProperyKey[][]}} keys - An array of keys to be picked from the object. received keysgoes through a flattening process before being used.
* @param {PropertyKey | PropertyKey[] | PropertyKey[][]}} keys - An array of keys to be picked from the object. received keys goes through a flattening process before being used.
* @returns {Partial<T, K>} A new object with the specified keys picked.
*
* @example
Expand Down Expand Up @@ -63,8 +63,8 @@ export function pick<
*
* @template T - The type of object.
* @param {T | null | undefined} obj - The object to pick keys from.
* @param {...any} keysArr - An array of keys to be picked from the object. received keysgoes through a flattening process before being used.
* @param {PropertyKey | PropertyKey[] | ProperyKey[][]}} keys - An array of keys to be picked from the object. received keysgoes through a flattening process before being used.
* @param {...any} keysArr - An array of keys to be picked from the object. received keys goes through a flattening process before being used.
* @param {PropertyKey | PropertyKey[] | PropertyKey[][]}} keys - An array of keys to be picked from the object. received keys goes through a flattening process before being used.
* @returns {Partial<T, K>} A new object with the specified keys picked.
*
* @example
Expand Down

0 comments on commit 04d903e

Please sign in to comment.