source: imaps-frontend/node_modules/object-inspect/example/all.js

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
3var inspect = require('../');
4var Buffer = require('safer-buffer').Buffer;
5
6var holes = ['a', 'b'];
7holes[4] = 'e';
8holes[6] = 'g';
9
10var 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};
22obj.self = obj;
23console.log(inspect(obj));
Note: See TracBrowser for help on using the repository browser.