I was looking at the code of react-heat-layer to see how this works, but I came across this line of code which I can't get:
var roundResults = function roundResults(results) {
return (0, _lodash4.default)(results, function (result, row) {
return (0, _lodash2.default)(filterUndefined(row), function (cell) {
return [Math.round(cell[0]), Math.round(cell[1]), Math.min(cell[2], maxIntensity), cell[3]];
}).concat(result);
}, []);
};
What is the value returned when the function roundResults is invoked? 0, _lodash.default, results, function or []?
Anyone could tell me the returned value, please?