Skip to content

feat: add isPositive isNegative methods#6

Open
RostiMelk wants to merge 5 commits into
Calvin-LL:mainfrom
RostiMelk:feat/add-is-positive-is-negative
Open

feat: add isPositive isNegative methods#6
RostiMelk wants to merge 5 commits into
Calvin-LL:mainfrom
RostiMelk:feat/add-is-positive-is-negative

Conversation

@RostiMelk

@RostiMelk RostiMelk commented Nov 27, 2024

Copy link
Copy Markdown

This PR introduces two new utility methods:

  • isPositive: A helper function to check if a given number is positive.
  • isNegative: A helper function to check if a given number is negative.

🫡

@burithetech

burithetech commented Dec 2, 2024

Copy link
Copy Markdown

Those two chore commits are useless since you're getting back that formatting in the last commit / 619ae90. 🙂

Comment thread src/IsEvenAiCore.ts
return this.query(prompt);
}

async isPositive(n: number): Promise<boolean | undefined> {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@tacerus tacerus Mar 27, 2025

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

and also for isNegative, https://www.npmjs.com/package/is-negative.

@belanasaikiran belanasaikiran left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Sorry. Please delete my approval

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants