diff --git a/src/utils/array/matrix/CheckMatrix.js b/src/utils/array/matrix/CheckMatrix.js index bea1e7fd1..b2b078dae 100644 --- a/src/utils/array/matrix/CheckMatrix.js +++ b/src/utils/array/matrix/CheckMatrix.js @@ -8,7 +8,7 @@ * Checks if an array can be used as a matrix. * * A matrix is a two-dimensional array (array of arrays), where all sub-arrays (rows) - * have the same length. There must be at least two rows. This is an example matrix: + * have the same length. This is an example matrix: * * ``` * [ @@ -33,7 +33,7 @@ */ var CheckMatrix = function (matrix) { - if (!Array.isArray(matrix) || matrix.length < 2 || !Array.isArray(matrix[0])) + if (!Array.isArray(matrix) || !Array.isArray(matrix[0])) { return false; }