Skip to content

Commit

Permalink
ensure options is a plain object
Browse files Browse the repository at this point in the history
  • Loading branch information
jonschlinkert committed May 29, 2017
1 parent 3b7ab15 commit 84a00c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ utils.instantiate = function(ast, options) {
*/

utils.createKey = function(pattern, options) {
if (typeof options === 'undefined') {
if (utils.typeOf(options) !== 'object') {
return pattern;
}
var val = pattern;
Expand Down

0 comments on commit 84a00c1

Please sign in to comment.