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

[QUESTION] null values are objects? #62

Open
markcellus opened this issue Apr 12, 2016 · 0 comments
Open

[QUESTION] null values are objects? #62

markcellus opened this issue Apr 12, 2016 · 0 comments
Labels
Question further information is requested

Comments

@markcellus
Copy link

When having this code:

// my-program.js
var output = nopt({
        val: [Number, null]
    }, {}, process.argv, 2);

then attempting this cli command:

$ node my-program.js

gives me:

var output = { "val" : null};

Which is okay. However, I dont think the following should happen, should it?:

output.val === null  // => false
@darcyclarke darcyclarke changed the title null values are objects? [QUESTION] null values are objects? Jul 28, 2022
@darcyclarke darcyclarke added the Question further information is requested label Jul 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants