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