lukeed / dset

A tiny (194B) utility for safely writing deep Object values~!
MIT License
754 stars 22 forks source link

Question: why did you not choose the while loop? #28

Closed rohit2sharma95 closed 2 years ago

rohit2sharma95 commented 2 years ago

Seems that while loop is a good fit here: https://github.com/lukeed/dset/blob/6515792797c398682864a2cc26907585748f3a71/src/index.js#L4 And the for loop is made less readable by changing syntax IMO 🙂

lukeed commented 2 years ago

Thanks, it was just code-style :) Accepted the PR only because it was 2B smaller