From a777731ba53360d8c3f235363331ddbf4a2d1a26 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Mon, 18 Sep 2017 12:31:06 -0700 Subject: [PATCH] Don't forget boolean --- src/style-spec/group_by_layout.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/style-spec/group_by_layout.js b/src/style-spec/group_by_layout.js index 03b1abe0b8d..6d64870860b 100644 --- a/src/style-spec/group_by_layout.js +++ b/src/style-spec/group_by_layout.js @@ -3,7 +3,7 @@ const refProperties = require('./util/ref_properties'); function stringify(obj) { const type = typeof obj; - if (type === 'number' || type === 'string' || obj === undefined || obj === null) + if (type === 'number' || type === 'boolean' || type === 'string' || obj === undefined || obj === null) return JSON.stringify(obj); if (Array.isArray(obj)) {