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