https://leetcode.com/problems/search-a-2d-matrix-ii


Runtime: 92 ms, faster than 23.53% of TypeScript online submissions for Search a 2D Matrix II.
Memory Usage: 42 MB, less than 79.41% of TypeScript online submissions for Search a 2D Matrix II.


```typescript
function searchMatrix(matrix: number[][], target: number): boolean {
    //8:23
    for (var row of matrix) {
        for (var value of row) {
            if (target == value) {
                return true
            }
        }
    }
    return false
    //8:24
    //debug until 8:27
};
```