You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

undef.js 302B

123456789101112
  1. var test = require('tape');
  2. var inspect = require('../');
  3. var obj = { a: 1, b: [3, 4, undefined, null], c: undefined, d: null };
  4. test('undef and null', function (t) {
  5. t.plan(1);
  6. t.equal(
  7. inspect(obj),
  8. '{ a: 1, b: [ 3, 4, undefined, null ], c: undefined, d: null }'
  9. );
  10. });