Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix passing an object directly to `to`

  • Loading branch information...
commit 6d3c5b167a8a72a5d97c9bc94b5c61a804f9b803 1 parent 2610e41
@rauchg rauchg authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  index.js
View
2  index.js
@@ -48,7 +48,7 @@ function create(key){
}
// process `to`
- if ('string' == typeof opts.to) opts.to = [opts.to];
+ if (!Array.isArray(opts.to)) opts.to = [opts.to];
if (opts.to) {
opts.to = opts.to.map(function(email){
return 'string' == typeof email ? parse(email) : email;
Please sign in to comment.
Something went wrong with that request. Please try again.