Skip to content

Commit

Permalink
Merge pull request #75 from oculus42/oculus42-patch-1
Browse files Browse the repository at this point in the history
Support undefined equal argument; Fixes #73
  • Loading branch information
erikras authored Apr 18, 2017
2 parents a0a869f + 4b61d1d commit 652d6ae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/memoize.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ export default function memoize(...config) {
}
if (typeof config[0] === 'function') {
equals = config.shift();
} else if (typeof config[0] === 'undefined') {
// Support passing undefined equal argument;
config.shift();
}
if (typeof config[0] === 'boolean') {
deepObjects = config[0];
Expand Down

0 comments on commit 652d6ae

Please sign in to comment.