From a76571abec2fc37074a319762778aaae3bf93ee5 Mon Sep 17 00:00:00 2001 From: "C. Lewis" <1657236+ctjlewis@users.noreply.github.com> Date: Thu, 23 Dec 2021 10:45:44 -0600 Subject: [PATCH] Use native `Array.isArray()` in `utils.js` (#3836) Co-authored-by: Jay --- lib/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils.js b/lib/utils.js index 8c2736bccd..f0f90432c5 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -13,7 +13,7 @@ var toString = Object.prototype.toString; * @returns {boolean} True if value is an Array, otherwise false */ function isArray(val) { - return toString.call(val) === '[object Array]'; + return Array.isArray(val); } /**