Nice! Some advanced stuff I'd never considered here. If you combine it with metho-number you could even do stuff like this:
metho-number
const {[bin]: binary, [hex]: hexidecimal, [base(8)]: octal} = 16 console.log(binary) // "10000" console.log(hexidecimal) // "10" console.log(octal) // "20"
Cool! Taken it to overdrive. Although, I'd say this relates to my last point about code readability. Nice for personal projects but a pain when someone pulls you aside to ask what is going on with the line of code.
Yeah - WTFs per minute in a code review of that would likely be off the charts
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Nice! Some advanced stuff I'd never considered here. If you combine it with
metho-number
you could even do stuff like this:Cool! Taken it to overdrive. Although, I'd say this relates to my last point about code readability. Nice for personal projects but a pain when someone pulls you aside to ask what is going on with the line of code.
Yeah - WTFs per minute in a code review of that would likely be off the charts