Simple email application for Android. Original source code: https://framagit.org/dystopia-project/simple-email
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
242 B

  1. // scrub out circular references
  2. var traverse = require('traverse');
  3. var obj = { a : 1, b : 2, c : [ 3, 4 ] };
  4. obj.c.push(obj);
  5. var scrubbed = traverse(obj).map(function (x) {
  6. if (this.circular) this.remove()
  7. });
  8. console.dir(scrubbed);