code: function toArray(self) {
      if (self instanceof Array) {
          return self;
      } else if (typeof self.toArray === "function") {
          return self.toArray();
      } else if (self.elements) {
          if (self.elements instanceof Array) {
              return self.elements;
          } else if (typeof self.elements === "function") {
              return self.elements();
          }
      } else if (self.items) {
          if (self.items instanceof Array) {
              return self.items;
          } else if (typeof self.items === "function") {
              return self.items();
          }
      }
      throw new Error("(sortedArray) Could not transform instance to array. It should provide either .toArray(), .elements or .items");
  }
docs: Tries to turn the given object into an array by trying common toArray()-method names.
  This function is necessary so alamid-sorted-array can be applied to all kind of array-like collections.
  
  @private
  @param {*} self
  @returns {Array}