mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-24 17:35:16 +00:00
14 lines
236 B
JavaScript
14 lines
236 B
JavaScript
|
import { deepmerge } from '@material-ui/utils';
|
||
|
|
||
|
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;
|