<NME> isRectangular.js
<BEF> ADDFILE
<MSG> Add named-grid-areas-no-invalid (#5167)


<DFF> @@ -0,0 +1,12 @@
+'use strict';
+
+/**
+ *
+ * @param {string[][]} areas
+ * @returns {boolean}
+ */
+function isRectangular(areas) {
+	return areas.every((row, i, arr) => row.length === arr[0].length);
+}
+
+module.exports = isRectangular;

{'addition_count': 12, 'commit_subject': 'Add named-grid-areas-no-invalid (#5167)', 'deletion_count': 0, 'file_extension': '.js', 'lang': 'js', 'license': 'mit', 'repo_name': 'stylelint/stylelint'}