nopt icon indicating copy to clipboard operation
nopt copied to clipboard

[QUESTION] null values are objects?

Open markcellus opened this issue 9 years ago • 0 comments

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

markcellus avatar Apr 12 '16 03:04 markcellus