The one I have meant was "jQuery in action", at the time that left a bigger impact as far learning is concerned. The jQuery team had promises and other things long before they became part of the standard API, he explains how they made it work.
However, secrets of a js ninja is very good as well, touches newer things like generators and es6, es7 features.
I hope you mean the JS ninja one because I just bought it week. Do you remember a particularly impactful section?