https://github.com/jobo322/linear-sum-assignment/blob/587088a2c67983e9a5e868a2b27d47f32435ecf2/src/getShortestPath.ts#L37 I think you can simply use: `new Array(3).fill(Number.NEGATIVE_INFINITY)` This method getArrayOfInfinity is not useful