add tests
This commit is contained in:
parent
b6411d485a
commit
9d26a4b6c3
1 changed files with 6 additions and 0 deletions
|
@ -57,6 +57,8 @@ Ox.cache = function(fn, options) {
|
||||||
/*@
|
/*@
|
||||||
Ox.identity <f> Returns its first argument
|
Ox.identity <f> Returns its first argument
|
||||||
This can be used as a default iterator
|
This can be used as a default iterator
|
||||||
|
> Ox.identity(Infinity)
|
||||||
|
Infinity
|
||||||
@*/
|
@*/
|
||||||
Ox.identity = function(value) {
|
Ox.identity = function(value) {
|
||||||
return value;
|
return value;
|
||||||
|
@ -66,6 +68,10 @@ Ox.identity = function(value) {
|
||||||
Ox.noop <f> Returns undefined and calls optional callback without arguments
|
Ox.noop <f> Returns undefined and calls optional callback without arguments
|
||||||
This can be used as a default iterator in an asynchronous loop, or to
|
This can be used as a default iterator in an asynchronous loop, or to
|
||||||
combine a synchronous and an asynchronous code path.
|
combine a synchronous and an asynchronous code path.
|
||||||
|
> Ox.noop(1, 2, 3)
|
||||||
|
undefined
|
||||||
|
> Ox.noop(1, 2, 3, function() { Ox.test(true, true); })
|
||||||
|
undefined
|
||||||
@*/
|
@*/
|
||||||
Ox.noop = function() {
|
Ox.noop = function() {
|
||||||
var callback = Ox.last(arguments);
|
var callback = Ox.last(arguments);
|
||||||
|
|
Loading…
Reference in a new issue