(a:Matrix,aName:string)
| 20 | } |
| 21 | |
| 22 | export function assertValidMatrix(a:Matrix,aName:string):void{ |
| 23 | if(!a[0] || !a.length){ |
| 24 | throw new Error(`->${aName} should be a valid matrix`); |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | export function assertValidMatrices(a: Matrix, b: Matrix, aName: string, bName: string): void { |
| 29 | assertValidMatrix(a,aName) |
no outgoing calls
no test coverage detected