Add callOrReturn
function
#212
Closed
aleclarson
started this conversation in
Ideas
Replies: 1 comment
-
Too much sugar... :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If the first argument is a function, call it with the remaining arguments. Otherwise, return the first argument.
Useful for flexible option values that may be a function or not.
Example
Naming
Open to suggestions.
Beta Was this translation helpful? Give feedback.
All reactions