diff options
Diffstat (limited to 'backend/node_modules/object-inspect/example/circular.js')
-rw-r--r-- | backend/node_modules/object-inspect/example/circular.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/backend/node_modules/object-inspect/example/circular.js b/backend/node_modules/object-inspect/example/circular.js new file mode 100644 index 0000000..487a7c1 --- /dev/null +++ b/backend/node_modules/object-inspect/example/circular.js @@ -0,0 +1,6 @@ +'use strict'; + +var inspect = require('../'); +var obj = { a: 1, b: [3, 4] }; +obj.c = obj; +console.log(inspect(obj)); |