-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
[PR proposal] Custom function.length
#13
Comments
Sure, PR welcome :) Make sure to mention the use-cases for it when you document it. |
Done in #18 |
Hmm, I've been thinking about this. First, it seems like an obscure use-case, as no one should really depend on |
Not copying length is a much better idea indeed. Actually I don't think there needs to be an option, It is an obscure use-case indeed, but we could make this lightweight by only doing this: when iterating over properties, skip |
Done in #23 |
Some users might want to copy all function properties except
length
. For example:A
length
option could be added to solve this:This could be useful for any function wrapper that modifies function arity through binding, currying, etc.
I can submit a PR if you think it is a good idea.
The text was updated successfully, but these errors were encountered: