arasatasaygin/is.js

Why '[object String]'?

Closed this issue · 1 comments

Hi!
What's the trivia behind is.string being toString.call(value) === '[object String]' and not typeof value === 'string'?

Hi @avalanche1!

You can have new String("foo").