code: public JsArrayNumber toJsArray() {
          JsArrayNumber array = JavaScriptObject.createArray().cast();
          array.push(minValue);
          array.push(maxValue);
          return array;
      }
docs: Converts the range to a JavaScript number array.
  
  @return a JavaScript number array