Closed romgrk closed 2 years ago
I will have to decline it and add it to Rambdax. But this MR further shows me that it is required to differentiate from Ramda and start brand anew with other name. There is related issue for this, but no particular idea for the name, but now I am more convinced that it is needed.
I will approve the MR but it will be included in Rambdax
when release is made. I will write here once this happens.
Released as R.noop
in Rambdax v10
This PR adds the
nop()
method, which does nothing and can be used as a placeholder or default value for function types. It fulfills a similar role thanR.identity
does.Admittedly, this one doesn't match any
ramda
methods, butrambda
's goal of being an utility belt makes it the best place where to add this function. I often end up repeatingconst NOOP = () => {}
in many points in my projects due to the absence of this function.