Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}).then(function () {
return map.aggregate(Aggregators.count());
}).then(function (count) {
console.log('There are ' + count + ' people.');
}).then(function (count) {
console.log('There are ' + count + ' people.');
return map.aggregateWithPredicate(Aggregators.count(), Predicates.lessEqual('this', 18));
}).then(function (count) {
console.log('There are ' + count + ' children.');