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
dropWhile
string
When the functor is a string (not an array of strings), the predicate is not forced to take the string as the parameter.
import * as Fae from "[email protected]" function f(a: number) { return a > 10 } Fae.dropWhile(f, 'df') Fae.dropLastWhile(f, 'df')
Playground
It should have result in an error.
The same problem was for dropLastWhile but it has been fixed #84. Change
dropLastWhile
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Which function does need to have its types refine/fix?
dropWhile
What is the problem you faced with current types?
When the functor is a
string
(not an array ofstring
s), the predicate is not forced to take thestring
as the parameter.Playground
Expected behavior
It should have result in an error.
Additional context
The same problem was for
dropLastWhile
but it has been fixed #84. ChangeVersions (please complete the following information):
The text was updated successfully, but these errors were encountered: