view changes

This commit is contained in:
albert
2011-08-22 16:28:31 -04:00
parent 24bf21540a
commit 2b7a8f2d67
10 changed files with 47 additions and 8 deletions

View File

@@ -34,4 +34,14 @@
return all;
}
Danbooru.reject = function(array, f) {
var filtered = [];
$.each(array, function(i, x) {
if (!f(x)) {
filtered.push(x);
}
});
return filtered;
}
})();