From 8ac041805c51ec806759d1bc05ee62cb5438ab2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Aubert?= Date: Wed, 6 Sep 2017 16:20:01 +0200 Subject: [PATCH] Use typeof !== string instead of underscore's equivalent --- lib/cartodb/models/dataview/histogram.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cartodb/models/dataview/histogram.js b/lib/cartodb/models/dataview/histogram.js index a1e08494..8624efc5 100644 --- a/lib/cartodb/models/dataview/histogram.js +++ b/lib/cartodb/models/dataview/histogram.js @@ -323,7 +323,7 @@ module.exports = class Histogram extends BaseWidget { constructor (query, options, queries) { super(); - if (!_.isString(options.column)) { + if (typeof options.column !== 'string') { throw new Error('Histogram expects `column` in widget options'); }