Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Printing of primitive wrapper objects #6

Closed
brigand opened this issue Apr 3, 2016 · 0 comments
Closed

Printing of primitive wrapper objects #6

brigand opened this issue Apr 3, 2016 · 0 comments
Assignees

Comments

@brigand
Copy link
Contributor

brigand commented Apr 3, 2016

new String(), etc. should be handled specially. Current behavior:

> var oi = require('object-inspect');
undefined
> oi(new Number(5))
'{}'
> oi(new String('hello'))
'{ 0: \'h\', 1: \'e\', 2: \'l\', 3: \'l\', 4: \'o\' }'
> oi(new Boolean(true))
'{}'

cc @ljharb

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

No branches or pull requests

2 participants