main
tieIndexes
function tieIndexes(shape) { const { indexes } = shape.reduce( (acc, val, i) => { if (i < shape.length - 1) { return {