1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | 1× 1× 1× | var _ = require('lodash'); /** * Retrieves orphaned lists (those not in a nav section) */ function getOrphanedLists () { if (!this.nav) { return []; } return _.filter(this.lists, function (list, key) { if (list.get('hidden')) return false; return (!this.nav.by.list[key]) ? list : false; }.bind(this)); } module.exports = getOrphanedLists; |