1.0.0 • Published 7 years ago
if-func v1.0.0
if-func
Just a tool specifically for the following scenes
if (typeof(foo) === 'function) {
foo(args)
} else {
bar(args)
}
Now you can use ifFunc
, like this
ifFunc(foo).call(this, args).else(bar)
1.0.0
7 years ago