Skip to content

Commit

Permalink
chore: fix build on node 4+5
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Dec 23, 2017
1 parent 49fc083 commit 6dac5a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -367,7 +367,7 @@ Kareem.prototype.merge = function(other) {
const sourcePres = get(ret._pres, key, []);
const deduplicated = other._pres[key].
// Deduplicate based on `fn`
filter(p => !sourcePres.map(({fn}) => fn).includes(p.fn));
filter(p => !sourcePres.map(_p => _p.fn).includes(p.fn));
ret._pres[key] = sourcePres.concat(deduplicated);
ret._pres[key].numAsync = get(ret._pres[key], 'numAsync', 0);
ret._pres[key].numAsync += deduplicated.filter(p => p.isAsync).length;
Expand Down

0 comments on commit 6dac5a4

Please sign in to comment.