Why '[object String]'?
Closed this issue · 1 comments
avalanche1 commented
Hi!
What's the trivia behind is.string
being toString.call(value) === '[object String]'
and not typeof value === 'string'
?
jdalton commented
Hi @avalanche1!
You can have new String("foo")
.