We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[0, 1, 2, null, undefined].filter(x => x) unintendedly (for me) evaluates to [1, 2].
[0, 1, 2, null, undefined].filter(x => x)
[1, 2]
What do you think about changing declaration of Array.prototype.filter (or any higher-order function which takes predicate) to
Array.prototype.filter
filter(predicate: (value: T, index: number, array: T[]) => boolean, thisArg?: any): T[];
from
filter(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): T[];
I manually changing lib-es5 from better-typescript-lib and that works good for my project.
The text was updated successfully, but these errors were encountered:
1e311d0
Thank you, fixed in 2.1.0.
Sorry, something went wrong.
No branches or pull requests
[0, 1, 2, null, undefined].filter(x => x)
unintendedly (for me) evaluates to[1, 2]
.What do you think about changing declaration of
Array.prototype.filter
(or any higher-order function which takes predicate) tofrom
I manually changing lib-es5 from better-typescript-lib and that works good for my project.
The text was updated successfully, but these errors were encountered: