Open ZebTheWizard opened 7 years ago
Thanks for the report. I agree that the code example you pointed out could be written better -- feel free to make a PR if you'd like.
I wasn't 100% sure were I was supposed to change the code, but here is the PR.
and now the 2021 version.
const myListing = await r.getHot({limit: 25});
console.log(myListing.length); // => 25
const extendedListing = await myListing.fetchMore({amount: 10});
console.log(extendedListing.length); // => 35
not a big issue, but in the documentation you write your promises like this.
when it should be written like this. Otherwise you are defeating the point of promises.
Reference (2014)