if (list)
return list.filter(e => e.active === true);
else
- return null;
+ return [];
});
njx.addFilter('idle', function(list) {
if (list)
return list.filter(e => e.active === false);
else
- return null;
+ return [];
+});
+
+njx.addFilter('map_prop', function(list, prop) {
+ if (list)
+ return list.map(e => e[prop]);
+ else
+ return [];
});
/* Load each of our game mini-apps.