code: function() {
  
        var t;
        var a = this['n'];
        var b = this['d'];
        var res = [];
  
        if (isNaN(this['n']) || isNaN(this['d'])) {
          return res;
        }
  
        do {
          res.push(Math.floor(a / b));
          t = a % b;
          a = b;
          b = t;
        } while (a !== 1);
  
        return res;
      }
docs: Returns an array of continued fraction elements
  
  Ex: new Fraction("7/8").toContinued() => [0,1,7]