3 ms·
Why does this need promises? Logic operations in JS doesn't do any I/O operations. Making this promises compliant is just overkill.
by oluwie 10y ago
Why does this need promises? Logic operations in JS doesn't do any I/O operations. Making this promises compliant is just overkill.
- formula1 10y agoTo me originally I thought it was just a library that replaced || with or() with no added benefit while promise support would have at least reduced the amount of overhead to create a readable logic wuth asynchronous situations (which is common in js). I now understand thos is a step towards making test code and runnable code one in the same.