fit-parser
Version:
Parse a written workout into a set of workout objects
16 lines (13 loc) • 329 B
JavaScript
var actions;
actions = require('./actions');
module.exports = function(target, intervals, key) {
return Object.defineProperty(target, key, {
enumerable: true,
set: function(value) {
return actions.set(intervals, key, value);
},
get: function() {
return actions.sum(intervals, key);
}
});
};