Skip to content

Commit

Permalink
check if not null
Browse files Browse the repository at this point in the history
  • Loading branch information
frakti committed Nov 25, 2016
1 parent 5ed0642 commit 6b2bfb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/voucherify.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const assertOption = (options, name) => {

const encode = (value = '') => encodeURIComponent(value)
const isString = (value) => typeof (value) === 'string'
const isObject = (value) => typeof (value) === 'object' && !Array.isArray(value)
const isObject = (value) => typeof (value) === 'object' && !Array.isArray(value) && value !== null
const isFunction = (value) => typeof (value) === 'function'

module.exports = function (options) {
Expand Down

0 comments on commit 6b2bfb1

Please sign in to comment.