Projekt

Obecné

Profil

Stáhnout (391 Bajtů) Statistiky
| Větev: | Revize:
1
'use strict';
2

    
3
var inspect = require('../');
4
var Buffer = require('safer-buffer').Buffer;
5

    
6
var holes = ['a', 'b'];
7
holes[4] = 'e';
8
holes[6] = 'g';
9

    
10
var obj = {
11
    a: 1,
12
    b: [3, 4, undefined, null],
13
    c: undefined,
14
    d: null,
15
    e: {
16
        regex: /^x/i,
17
        buf: Buffer.from('abc'),
18
        holes: holes
19
    },
20
    now: new Date()
21
};
22
obj.self = obj;
23
console.log(inspect(obj));
(1-1/4)