Skip to content

Commit

Permalink
docs(defaultvaluefn): fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
djcsdy committed Mar 17, 2021
1 parent 140d439 commit de7370f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function defaultValue<T>(nullable: T | undefined | null, defaultValue: T)
* if the specified value is null or undefined.
*
* If the default value is expensive to compute, consider using
* {@link mapNulLFn} instead. */
* {@link mapNullFn} instead. */
export function defaultValueFn<T>(defaultValue: T): (nullable: T | undefined | null) => T {
return nullable => nullable ?? defaultValue;
}
Expand Down

0 comments on commit de7370f

Please sign in to comment.