Skip to content

Commit

Permalink
fix: Ensure that recieved is not null | undefined (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
blake-newman authored and eddyerburgh committed Jun 4, 2018
1 parent c2932c5 commit 69b2553
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
@@ -1,7 +1,8 @@
const beautify = require('pretty')

const isHtmlString = received => typeof received === 'string' && received[0] === '<'
const isHtmlString = received => received && typeof received === 'string' && received[0] === '<'
const isVueWrapper = received => (
recieved &&
typeof received === 'object' &&
typeof received.isVueInstance === 'function'
)
Expand Down

0 comments on commit 69b2553

Please sign in to comment.