I'm using the package WordPos which has a function getNouns such that getNouns(text, callback), for example.
wordpos.getNouns('The angry bear chased the frightened little squirrel.',
console.log)
// [ 'bear', 'squirrel', 'little', 'chased' ]
I want to write the promise to an array rather than logging it and haven't had any luck. Any suggestions?