{{ min }} {{ max }} module.exports.getTrackStyle = function(offsets, index, multiple) { if (!multiple) { return 'width: ' + offsets[index] + '%' } return 'left: ' + offsets[index] + '%; width: ' + (offsets[index + 1] - offsets[index]) + '%' } module.exports.getStyle = function(style, index) { if (style.constructor !== 'String') { return style[index] } return style } module.exports.getValue = function(obj, name) { if (obj.constructor === 'Object') { return obj[name] } return obj }