LT-275: Creating measure flow component layout and motion

This commit is contained in:
Bruno Alves de Faria committed 2016-07-25 17:19:47 -03:00
1 parent 82e374b1e3
commit 7fdfbf1c1a
26 files changed
+415 -26

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
import { _ } from 'meteor/underscore';
import { Template } from 'meteor/templating';
/**
* Global Blaze UI helpers to work with numeric operations
*/
// Sum all the given numbers
Template.registerHelper('sum', (...values) => {
let result = 0;
_.each(_.initial(values, 1), value => (result += (value | 0)));
return result;
});