The lodash method _.takeRightWhile
exported as a Node.js module.
Using npm:
$ {sudo -H} npm i -g npm
$ npm i --save lodash.takerightwhile
In Node.js:
var takeRightWhile = require('lodash.takerightwhile');
See the documentation or package source for more details.