Opal-Estate-Pro/node_modules/object-inspect/example/circular.js
2019-09-13 11:27:52 +07:00

5 lines
100 B
JavaScript

var inspect = require('../');
var obj = { a: 1, b: [3,4] };
obj.c = obj;
console.log(inspect(obj));