From 2384092e9e132e0347bd70888152aa95adc28d81 Mon Sep 17 00:00:00 2001 From: Scott Nonnenberg Date: Thu, 5 Apr 2018 12:39:16 -0700 Subject: [PATCH] Use Array.isArray in i18n.js --- js/i18n.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/i18n.js b/js/i18n.js index de7330497..5ed168ec4 100644 --- a/js/i18n.js +++ b/js/i18n.js @@ -18,7 +18,7 @@ exports.setup = (locale, messages) => { } const { message } = entry; - if (substitutions instanceof Array) { + if (Array.isArray(substitutions)) { return substitutions.reduce( (result, substitution) => result.replace(/\$.+?\$/, substitution), message