Skip to content

Commit

Permalink
Rename wrongly named symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
garronej committed Jan 25, 2024
1 parent 9dc0753 commit 69f4943
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/exclude.ts
Expand Up @@ -13,7 +13,7 @@ export function exclude<T extends string | number | null | undefined | boolean>(
? element => target.indexOf(element) < 0
: element => element !== target;

return function <U>(str: U): str is Exclude<U, T> {
return test(str);
return function <U>(elemnt: U): elemnt is Exclude<U, T> {
return test(elemnt);
};
}

0 comments on commit 69f4943

Please sign in to comment.