projects
/
squeep-lazy-property
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c652fc3
)
remove duplicate code
author
Justin Wind
<justin.wind+git@gmail.com>
Fri, 10 Jun 2022 17:00:17 +0000
(10:00 -0700)
committer
Justin Wind
<justin.wind+git@gmail.com>
Fri, 10 Jun 2022 17:00:17 +0000
(10:00 -0700)
index.js
patch
|
blob
|
history
diff --git
a/index.js
b/index.js
index 7259810fae0e21f4bf336916cb76148a2f9fe74d..672e684b562d3ef8bb2d9574ca08dff18f4cac22 100644
(file)
--- a/
index.js
+++ b/
index.js
@@
-31,8
+31,6
@@
const defaultAccessorDescriptor = defaultShape(null, {
* @returns {Object}
*/
function descriptorFromDefault(defaultDescriptor, ...objs) {
- const newObject = Object.create(defaultDataDescriptor);
- Object.assign(newObject, ...objs);
return Object.assign(Object.create(defaultDescriptor), ...objs);
}