repo.or.cz
/
ProtonMail-WebClient.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Cleanup - unused files / unused exports / duplicate exports
[ProtonMail-WebClient.git]
/
packages
/
shared
/
lib
/
helpers
/
updateObject.ts
blob
230907a179faad57f251a64d47d9d7fe1fb40d31
1
const updateObject = <T>(model: T, newModel: Partial<T>) => ({
2
...model,
3
...newModel,
4
});
5
6
export default updateObject;