From 5e8810193c11b20c1d8aea3448efa5ee1cbec41d Mon Sep 17 00:00:00 2001 From: GreenPIsoftware Date: Tue, 20 Mar 2018 21:36:27 +0100 Subject: [PATCH] Update matrix.js --- lib/matrix.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matrix.js b/lib/matrix.js index 34b2d97..0ce0e17 100644 --- a/lib/matrix.js +++ b/lib/matrix.js @@ -124,7 +124,7 @@ class Matrix { } static deserialize(data) { - if (typeof data == 'string') { + if (typeof data === 'string') { data = JSON.parse(data); } let matrix = new Matrix(data.rows, data.cols);