Use typeof !== string instead of underscore's equivalent

This commit is contained in:
Daniel García Aubert 2017-09-06 16:20:01 +02:00
parent 6e0dc8666d
commit 8ac041805c

View File

@ -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');
}