TypeScript/JavaScript simple one-line solution with comments/discussion
Intuition\nAs long as you know the mod operator % this one should be pretty easy for you.\n\n# Approach\nSince there is the same solution available, regardless 
# Intuition\nAs long as you know the `mod` operator `%` this one should be pretty easy for you.\n\n# Approach\nSince there is the same solution available, regardless of the input, this is pretty easy to code a solution for. Just return the number `n` if it divides evenly by 2, otherwise return the number multiplied by 2.\n\n# Complexity\n- Time complexity:\n$$O(1)$$\n\n- Space complexity:\n$$O(1)$$\n\n# Code\n```\nconst smallestEvenMultiple = (n: number): number => {\n\n    return n % 2 == 0 ? n : n * 2;\n\n};\n```\nSee more `TypeScript`/`JavaScript` (and other language) LeetCode solutions at https://github.com/jasonmauss/LeetCode
['TypeScript', 'JavaScript']