dijs / wiki

Wikipedia Interface for Node.js
MIT License
315 stars 61 forks source link

How can I push page.summary() to an empty array? #138

Closed YMGPwcca closed 4 years ago

YMGPwcca commented 4 years ago
let sum = [];

wiki().page(content).then(page => page.summary()).then(sum.push());

I tried this but it's not working