2 ms·
Writing this[rename](...) instead of this.rename(...) is hardly onerous. Your solution mostly works, but a simpler one takes advantage of combining computed pr
by braythwayt 11y ago
Writing this[rename](...) instead of this.rename(...) is hardly onerous.
Your solution mostly works, but a simpler one takes advantage of combining computed property keys and compact method syntax:
https://gist.github.com/raganwald/18f8c179101cfd93c291 https://gist.github.com/raganwald/18f8c179101cfd93c291
- ravicious 11y agoOkay, now this certainly feels better than my example and is much more bulletproof than prefixing function names with `_`, thanks.