Open ChristopherChudzicki opened 6 years ago
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 length
eval
to create function with expected number of arguments.
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?