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

Update stringify.ts #39

Closed
wants to merge 1 commit into from
Closed

Update stringify.ts #39

wants to merge 1 commit into from

Conversation

BelfordZ
Copy link

@BelfordZ BelfordZ commented Mar 18, 2025

PR Type

formatting


Description

  • Add missing semicolon in isObject function

Changes walkthrough 📝

Relevant files
Formatting
stringify.ts
Add missing semicolon in `isObject` function                         

src/utils/functions/stringify.ts

  • Added a semicolon at the end of the isObject function
+1/-1     

Need help?
  • Type /help how to ... in the comments thread for any questions about PR-Agent usage.
  • Check out the documentation for more information.
  • Copy link

    PR Reviewer Guide 🔍

    Here are some key observations to aid the review process:

    ⏱️ Estimated effort to review: 1 🔵⚪⚪⚪⚪
    🏅 Score: 100
    🧪 No relevant tests
    🔒 No security concerns identified
    ⚡ No major issues detected

    Comment on lines 20 to +23
    return false
    }
    return typeof val === 'function' || typeof val === 'object'
    }
    };

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    Suggestion: Remove the semicolon at the end of the arrow function to maintain consistency with the rest of the code style. [general, importance: 5]

    New proposed code:
     const isObject = (val: unknown): boolean => {
       if (val === null) {
         return false
       }
       if (Array.isArray(val)) {
         return false
       }
       return typeof val === 'function' || typeof val === 'object'
    -};
    +}

    @BelfordZ BelfordZ closed this Mar 18, 2025
    @BelfordZ BelfordZ deleted the BelfordZ-patch-2 branch March 18, 2025 19:35
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    1 participant