varbaseToPairs=require('./_baseToPairs'),getTag=require('./_getTag'),mapToArray=require('./_mapToArray'),setToPairs=require('./_setToPairs');/** `Object#toString` result references. */varmapTag='[object Map]',setTag='[object Set]';/** * Creates a `_.toPairs` or `_.toPairsIn` function. * * @private * @param {Function} keysFunc The function to get the keys of a given object. * @returns {Function} Returns the new pairs function. */functioncreateToPairs(keysFunc){returnfunction(object){vartag=getTag(object);if(tag==mapTag){returnmapToArray(object);}if(tag==setTag){returnsetToPairs(object);}returnbaseToPairs(object,keysFunc(object));};}module.exports=createToPairs;