Skip to content

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) + '__@';
}

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants