Translate from Coffe (or Type) to vanilla js language

21 Views Asked by At

I have a part of code on TypeScript or CoffeScript, but I need it on vanilla, can you help me?

da.getMatchHistory(options).then((result) => {
    console.log(result);
}, (errorResponseStatusText) => {
    console.log(errorResponseStatusText);
});
1

There are 1 best solutions below

0
Frank Wisniewski On BEST ANSWER

I think it is javascript with arrows ...

da.getMatchHistory(options).then(function (result) {
  console.log(result);
}, function (errorResponseStatusText) {
   console.log(errorResponseStatusText);
});