10 lines
230 B
JavaScript
10 lines
230 B
JavaScript
|
import deepmerge from '@mui/utils/deepmerge';
|
||
|
function merge(acc, item) {
|
||
|
if (!item) {
|
||
|
return acc;
|
||
|
}
|
||
|
return deepmerge(acc, item, {
|
||
|
clone: false // No need to clone deep, it's way faster.
|
||
|
});
|
||
|
}
|
||
|
export default merge;
|