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