Skip to content

Commit

Permalink
💡 Update getTruthyKeys documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Jose Luis Pillado committed Feb 8, 2021
1 parent 018baa2 commit 1afd7b6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/getTruthyKeys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@ export default getTruthyKeys
* @param collection Collection to iterate over.
* @param parseKeyFunction Function invoked per iteration. This
* function takes as parameter a key of a truthy value. The value it returns
* will be used in resulting list. Note that if this function returns a falsy
* value value, the key won't be present in resulting collection.
* @returns New list with just the keys of truthy entries, for which
* `parseKeyFunction` returned a truthy value.
* will be used in resulting list.
* @returns New list with just the keys of truthy entries.
*/
function getTruthyKeys<T extends object, TResult>(
collection: T | null | undefined,
Expand Down

0 comments on commit 1afd7b6

Please sign in to comment.