var SetDepth = function (items, value, step) { if (step === undefined) { step = 0; } for (var i = 0; i < items.length; i++) { items[i].depth = value + (i * step); } return items; }; module.exports = SetDepth;