UNPKG

carbon-react

Version:

A library of reusable React components for easily building user interfaces.

2 lines (1 loc) 332 B
"use strict";function t(t){return t&&"object"==typeof t&&!Array.isArray(t)}function r(e,...n){if(!n.length)return e;const i=n.shift();if(t(e)&&t(i))for(const n in i)t(i[n])?r(e[n],i[n]):Object.assign(e,{[n]:i[n]});return r(e,...n)}exports.isObject=t,exports.mergeDeep=function(t,...e){return r(JSON.parse(JSON.stringify(t)),...e)};