Comparing version 0.53.0 to 0.53.1
@@ -692,4 +692,6 @@ /** | ||
function tap (array, func) { | ||
array.forEach(x => func(x)); | ||
return array; | ||
return array.reduce((acc, cur) => { | ||
func(cur); | ||
return [...acc, cur]; | ||
}, []); | ||
} | ||
@@ -696,0 +698,0 @@ |
{ | ||
"name": "absurdum", | ||
"version": "0.53.0", | ||
"version": "0.53.1", | ||
"description": "Reductio Ad Absurdum - The Ridiculous Application of Reduce", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -18,6 +18,8 @@ /** | ||
function tap (array, func) { | ||
array.forEach(x => func(x)); | ||
return array; | ||
return array.reduce((acc, cur) => { | ||
func(cur); | ||
return [...acc, cur]; | ||
}, []); | ||
} | ||
export { tap }; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
189468
4779