main
Last change
on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
391 bytes
|
Line | |
---|
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));
|
---|
Note:
See
TracBrowser
for help on using the repository browser.