split remaining utilities from shared

This commit is contained in:
Matteo Pagliazzi
2016-03-08 19:35:02 +01:00
parent bb6f0f4252
commit 986bfd8035
14 changed files with 266 additions and 246 deletions

View File

@@ -0,0 +1,7 @@
import _ from 'lodash';
module.exports = function(items) {
return _.reduce(items, (function(m, v) {
return m + (v ? 1 : 0);
}), 0);
};