Skip to content

Properly check whether string is string because js is js#1

Closed
tomi2108 wants to merge 1 commit intotsoding:mainfrom
tomi2108:main
Closed

Properly check whether string is string because js is js#1
tomi2108 wants to merge 1 commit intotsoding:mainfrom
tomi2108:main

Conversation

@tomi2108
Copy link

@tomi2108 tomi2108 commented Jul 13, 2024

typeof(new String()) === 'object'

@rexim
Copy link
Member

rexim commented Jul 14, 2024

This is irrelevant to our use case. We use this functions for deserialization to plain object.

@rexim rexim closed this Jul 14, 2024
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.

2 participants