diff options
Diffstat (limited to 'includes/external/school/node_modules/object-inspect/example/circular.js')
-rw-r--r-- | includes/external/school/node_modules/object-inspect/example/circular.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/includes/external/school/node_modules/object-inspect/example/circular.js b/includes/external/school/node_modules/object-inspect/example/circular.js new file mode 100644 index 0000000..487a7c1 --- /dev/null +++ b/includes/external/school/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)); |