Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Commit

Permalink
fix(defaults): remove const
Browse files Browse the repository at this point in the history
  • Loading branch information
Haroenv committed Nov 18, 2019
1 parent bb2b31e commit 48a0c48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/functions/defaultsPure.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// NOTE: this behaves like lodash/defaults, but doesn't mutate the target
module.exports = function defaultsPure() {
const sources = Array.prototype.slice.call(arguments);
var sources = Array.prototype.slice.call(arguments);
return sources.reduceRight(function(acc, source) {
Object.keys(Object(source)).forEach(function(key) {
if (source[key] !== undefined) {
Expand Down

0 comments on commit 48a0c48

Please sign in to comment.