Refactor this code to be cleaner, shorter, or more performant — without changing behavior: ```js {{input}} ```