Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Remove unnecessary second argument in conditional statement #110

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Commits on Jun 14, 2023

  1. 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.
    mxmxmarexmxm authored Jun 14, 2023
    Configuration menu
    Copy the full SHA
    39abb85 View commit details
    Browse the repository at this point in the history

Commits on Jun 15, 2023

  1. Create urlify-4.js

    Implemented the shortest approach to URLify a string. The URLify function utilizes the trim() method to remove leading and trailing spaces and the replaceAll() method to replace spaces with '%20'. This concise solution effectively replaces all spaces in the string with the desired URL encoding.
    mxmxmarexmxm authored Jun 15, 2023
    Configuration menu
    Copy the full SHA
    347ede3 View commit details
    Browse the repository at this point in the history
  2. Delete urlify-4.js

    mxmxmarexmxm authored Jun 15, 2023
    Configuration menu
    Copy the full SHA
    409d515 View commit details
    Browse the repository at this point in the history