|
|
|
|
|
by westcoast49
541 days ago
|
|
It comes down to the quality of the abstractions. If they are well made and well named, you'd rather read this: axios.get('https://api.example.com', {
headers: { 'Authorization': 'Bearer token' },
params: { key: 'value' }
})
.then(response => console.log(response.data))
.catch(error => console.error(error));
than to read the entire implementations of get(), then() and catch() inlined. |
|