Closed premasagar closed 11 years ago
A list of all methods (run in the console):
function logMethods(obj){
for (prop in obj){
if (typeof obj[prop] === 'function'){
console.log(prop);
}
}
}
console.log('\n\n\n*** PABLO COLLECTION API ***');
logMethods(Pablo.fn);
console.log('\n\n\n*** STATIC METHODS ***');
logMethods(Pablo);
var prop; for (prop in Pablo.Collection){ if (typeof Pablo.Collection(prop) === 'function'){ console.log(prop); } }
This code isn't working unfortunately
Code snippet updated...
There are no tests for the following:
*** PABLO COLLECTION API ***
traverse
getValue
All are worth testing, except forEach
, which is an alias of each
.
relations
has been renamed to traverse
(pull).
To test Pablo.Collection
:
Pablo.Collection.prototype === Pablo.fn; // true
Pablo.g() instanceof Pablo.Collection; // true
e.g. every, select, reverse