CtCI-6th-Edition-JavaScript icon indicating copy to clipboard operation
CtCI-6th-Edition-JavaScript copied to clipboard

refactor: Remove unnecessary second argument in conditional statement

Open mxmxmarexmxm opened this issue 2 years ago • 0 comments

This commit refactors the code by removing the unnecessary second argument in the conditional statement. The condition "if (obj[str[i]] && obj[str[i]] >= 1)" has been simplified to "if (obj[str[i]])" for improved readability and code conciseness. This change helps to streamline the logic and remove unnecessary complexity from the codebase.

mxmxmarexmxm avatar Jun 14 '23 23:06 mxmxmarexmxm