Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add support for NaN#190

Open
vagos wants to merge 3 commits intoyahoo:main from
vagos:main
Open

Add support for NaN #190
vagos wants to merge 3 commits intoyahoo:main from
vagos:main

Conversation

@vagos
Copy link

@vagos vagos commented Nov 8, 2024

I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.

@vagos vagos force-pushed the main branch 2 times, most recently from f3e379d to 8878890 Compare November 13, 2024 00:48
Comment on lines +87 to +89
if (typeof value === 'number' && isNaN(value)) {
return '@__N-' + UID + '-' + (nans.push(value) - 1) + '__@';
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

it might be better to combine this if statement with the number if statement.

if (type === 'number' && !isNaN(origValue) && !isFinite(origValue)) {
return '@__I-' + UID + '-' + (infinities.push(origValue) - 1) + '__@';
}

vagos added 2 commits February 10, 2025 00:13
Signed-off-by: Evangelos Lamprou <vagos@lamprou.xyz>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@okuryu okuryu okuryu left review comments

+1 more reviewer

@Pet3cy Pet3cy Pet3cy approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /