lambda: stable and all deps are constants? Constant.
Open
✨ feature
- Dominant language
- TypeScript
- Stars
- 12.9k
- Forks
- 625
- Avg merge
- 5h 23m
- Merged PRs (30d)
- 24
Description
If a lambda is sync and safe and only dependent on constants and has no side effects and is pure then we should be able to replace it with a constant?
Regarding "is pure" we can check this ourselves with babel if we want - essentially we need to ensure it contains no variable references outside its own scope (including references to `this`!)
Contributor guide
Assessment
This issue has not been assessed yet.