MCPcopy Create free account
hub / github.com/RubyLouvre/anu / checkForCircular

Function checkForCircular

test/babel.js:50498–50504  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

50496
50497 var objStack = [];
50498 function checkForCircular(obj) {
50499 for (var i = 0; i < objStack.length; i++) {
50500 if (objStack[i] === obj) {
50501 throw new TypeError("Converting circular structure to JSON");
50502 }
50503 }
50504 }
50505
50506 function makeIndent(str, num, noNewLine) {
50507 if (!str) {

Callers 1

internalStringifyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected