Skip to content

Commit

Permalink
Don't forget boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
jfirebaugh committed Sep 18, 2017
1 parent 6c89c85 commit a777731
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/style-spec/group_by_layout.js
Expand Up @@ -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)) {
Expand Down

0 comments on commit a777731

Please sign in to comment.