update docs
This commit is contained in:
parent
9ffe48b526
commit
08aedd34fd
1 changed files with 3 additions and 3 deletions
|
@ -550,14 +550,14 @@ Ox.values = function(collection) {
|
|||
};
|
||||
|
||||
/*@
|
||||
Ox.walk <f> Iterate over a nested data structure
|
||||
Ox.walk <f> Iterates over a nested data structure
|
||||
<script>
|
||||
Ox.test.number = 0;
|
||||
Ox.walk({a: 1, b: {c: 2, d: 3}}, function (value) {
|
||||
Ox.walk({a: 1, b: {c: 2, d: 3}}, function(value) {
|
||||
Ox.test.number += Ox.isNumber(value) ? value : 0;
|
||||
});
|
||||
Ox.test.array = [];
|
||||
Ox.walk({a: 1, b: {c: 2, d: 3}}, function (value, keys) {
|
||||
Ox.walk({a: 1, b: {c: 2, d: 3}}, function(value, keys) {
|
||||
Ox.isNumber(value) && Ox.test.array.push(keys)
|
||||
});
|
||||
</script>
|
||||
|
|
Loading…
Reference in a new issue