ui
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = function when(value, fn, defaultFn) {
|
||||
if (value) {
|
||||
return fn(this, value);
|
||||
}
|
||||
|
||||
if (defaultFn) {
|
||||
return defaultFn(this, value);
|
||||
}
|
||||
|
||||
return this;
|
||||
};
|
||||
Reference in New Issue
Block a user