add Ox.identity
This commit is contained in:
parent
e8f7f37a8a
commit
03947b0d7f
1 changed files with 4 additions and 0 deletions
|
@ -53,6 +53,10 @@ Ox.cache = function(fn, options) {
|
|||
return ret;
|
||||
};
|
||||
|
||||
Ox.identity = function(val) {
|
||||
return val;
|
||||
};
|
||||
|
||||
/*@
|
||||
Ox.void <f> Returns nothing and calls options callback without arguments
|
||||
This can be useful to combine a synchronous and an asynchronous code path.
|
||||
|
|
Loading…
Reference in a new issue