code: function createArray() {
    const arr = [];
    arr.__proto__ = new Array;
    arr.__proto__.format = function toString() {
      return this.map(obj => ({
        ...obj,
        path: obj.path.join(' > '),
      }));
    };
    arr.__proto__.toString = function toString() {
      return JSON.stringify(this.format(), null, 2);
    };
    return arr;
  }
docs: /* eslint no-proto: 0