Hacker News new | ask | show | jobs
by gazarullz 2326 days ago
You should try using computed propeties, it's the closest/cleanest way to pattern matching until tc39 will pass the pending proposal.