The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

Winson (32) [Avatar] Offline
#1
Here is my code try to achieve this requirement:


__.difference(__.allKeys(bobFavorites),req.access_token.scope).forEach( function(item) {
if (bobFavorites[item])
delete bobFavorites[item];
});

Any comment is welcome!
Antonio Sanso (11) [Avatar] Offline
#2
Thanks Winson for the comment.
Would you like us to cover this in the book as well? smilie
Winson (32) [Avatar] Offline
#3
Sure. Thanks
Justin Richer (58) [Avatar] Offline
#4
Right now this is left as an exercise to the reader, which I think is appropriate. Nice work!