From 150cad3a66fd1717d8e292c33e8f45724ad7bf32 Mon Sep 17 00:00:00 2001 From: Aleen Date: Fri, 12 Jul 2019 09:55:27 +0800 Subject: [PATCH] typo: fix mixin solution --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 83fc5e3..c23188b 100644 --- a/README.md +++ b/README.md @@ -92,7 +92,7 @@ Possible objects based mixin solutions could also benefit from this proposal: ```js let mix = (object) => ({ with: (...mixins) => mixins.reduce( - (c, mixin) => Object.create( + (c, mixin) => Object.defineProperties( c, Object.getOwnPropertyDescriptors(mixin) ), object) });