use _.isString(style) instead of typeof style !== 'string'