javascripter's gist: 139376 â Gist ã«è¼ããã function isCircular(obj) { function isCircularWithAncestors(obj, ancestors) { var k; for (k in obj) if (ancestors.indexOf(obj) >= 0 || obj[k] instanceof Object && isCircularWithAncestors(obj[k], ancestors.concat([obj]))) return true; return false; } return obj instanceof Object && isCircularWithAncestors(obj, []); } ref. cyclicãªãªãã¸ã§ã¯ãã®å¤å®ã«ã¤ãã¦èª¿ã¹ã¦ã¦v8ã®JSON.stri


{{#tags}}- {{label}}
{{/tags}}