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