smartprocure / futil-js

F(unctional) util(ities). Resistance is futile.
https://smartprocure.github.io/futil-js/
MIT License
991 stars 68 forks source link

Fixed cascade, was returning undefined when it should of returned 0 #429

Closed TrevorRanney closed 10 months ago

TrevorRanney commented 11 months ago

This is a fix to cascade

const c = cascade(['z'], { z: 0 }) c is now 0 instead of undefined

changeset-bot[bot] commented 11 months ago

⚠️ No Changeset found

Latest commit: 6868e8520ec87bff64dd54c520461234b0aae291

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

TrevorRanney commented 11 months ago

This was related to this issue: https://github.com/smartprocure/futil-js/issues/339