timeRange

node v8.12.0
version: 1.0.0
endpointsharetweet
const currentMos = { historics: { differentiators: { 'dif1':[{id:1}] , 'dif2':[{id:1}] } } }; const emptyValues = [7,8,9] function completeHistorics(currentMos, emptyValues, timeRange) { // inject emptyValues to differentiators Object.keys(currentMos.historics.differentiators).map(function(diff) { //var selectedTimeRange = timeRange; emptyValues.map(function(value) { //var emptyDiff = generateEmptyValues(value, selectedTimeRange); currentMos.historics.differentiators[diff].push({value, timeRange}); }) }); return currentMos; } completeHistorics(currentMos, emptyValues, 'mediodia');
Loading…

no comments

    sign in to comment