I've been working away converting ES5 -> latest and greatest stuff and one thing I've noticed in a lot of the code are functions that simple say
[HTML]function getAsset (url) {
Api.get(url)
}[/HTML]
I don't know about anyone else but this gets annoying trying to trace down what exactly URL is especially within a startup environment where documentation is next to 0 on the API side. So I was doing some researching and ended up writing this.
https://www.npmjs.com/package/fetch-rest-api-wrapper
So my question and a debate I would like to have is how does everyone else write their API calls within their code, has everyone switched from Promises to Observables, do you think that using decorators with Typescript / Javascript is going to close to becoming Java or Python based in terms of writing code?