add Ox.identity

This commit is contained in:
rolux 2012-05-19 12:09:48 +04:00
parent e8f7f37a8a
commit 03947b0d7f

View file

@ -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.