CtCI-6th-Edition-JavaScript
CtCI-6th-Edition-JavaScript copied to clipboard
refactor: Remove unnecessary second argument in conditional statement
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.