]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - apps/tidep0084.git/blob - example/iot-gateway/node_modules/object-inspect/example/all.js
Initial commit
[apps/tidep0084.git] / example / iot-gateway / node_modules / object-inspect / example / all.js
1 var inspect = require('../');
2 var holes = [ 'a', 'b' ];
3 holes[4] = 'e', holes[6] = 'g';
4 var obj = {
5     a: 1,
6     b: [ 3, 4, undefined, null ],
7     c: undefined,
8     d: null,
9     e: {
10         regex: /^x/i,
11         buf: new Buffer('abc'),
12         holes: holes
13     },
14     now: new Date
15 };
16 obj.self = obj;
17 console.log(inspect(obj));