-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
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
memoized function has no length #38
Comments
At one point we tried adding this, but it broke ie11 #18 We could wrap the assignment in a try / catch... I am not sure what the best path forward is. /cc @theKashey |
We shall just redo #18 |
Maybe if we wrap it in a try catch? My issue is that people might expect the function to have a length in ie11 - but it wont |
There is 2 ways to define
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Memoizing a function sets its length property to zero:
This is not really a big deal: length is a configurable property, so if you care about
f.length
you can just set it manually afterwards usingObject.definiteProperty
.Should
memoizeOne
automatically configure the memoized functions length property?The text was updated successfully, but these errors were encountered: