@stdlib/utils-map-keys
Version:
Map keys from one object to a new object having the same values.
6 lines (5 loc) • 573 B
JavaScript
;var v=function(r,e){return function(){return e||r((e={exports:{}}).exports,e),e.exports}};var s=v(function(l,n){
var o=require('@stdlib/assert-is-function/dist'),c=require('@stdlib/assert-has-own-property/dist'),i=require('@stdlib/error-tools-fmtprodmsg/dist');function p(r,e){var u,t,a;if(typeof r!="object"||r===null)throw new TypeError(i('1VJ3L',r));if(!o(e))throw new TypeError(i('1VJ2H',e));u={};for(t in r)c(r,t)&&(a=r[t],t=e(t,a,r),u[t]=a);return u}n.exports=p
});var m=s();module.exports=m;
/** @license Apache-2.0 */
//# sourceMappingURL=index.js.map