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