add fixme
This commit is contained in:
parent
23af95b611
commit
55c76942f9
1 changed files with 20 additions and 0 deletions
|
@ -523,6 +523,26 @@ Ox.sum = function(collection) {
|
|||
return ret;
|
||||
};
|
||||
|
||||
/* FIXME: do we need this kind of zip functionality?
|
||||
|
||||
Ox.arrayToObject = function(array, key) {
|
||||
var ret = {};
|
||||
array.forEach(function(v) {
|
||||
ret[v[key]] = v;
|
||||
});
|
||||
return ret;
|
||||
};
|
||||
|
||||
Ox.objectToArray = function(object, key) {
|
||||
var ret = [];
|
||||
Ox.forEach(object, function(v, k) {
|
||||
ret.push(Ox.extend(v, key, k));
|
||||
});
|
||||
return ret
|
||||
};
|
||||
|
||||
*/
|
||||
|
||||
/*@
|
||||
Ox.values <f> Returns the values of a collection
|
||||
> Ox.values([1, 2, 3])
|
||||
|
|
Loading…
Reference in a new issue