class Sample {
@observable myArray = [];
}
let sample = new Sample();
class Sample {
@observable myArray = [];
constructor() {
var request = new XMLHttpRequest();
request.open("POST", "/my/url", true);
request.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8");
request.send(this.myArray.toJS());
}
}
let sample = new Sample();