From f3fd1845ff4bcf6112148d74a22fb8f815ff0d78 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 6 May 2020 05:37:28 +0300 Subject: [PATCH] docs... Signed-off-by: Alex A. Naanou --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 621ccab..3477eb9 100755 --- a/README.md +++ b/README.md @@ -264,6 +264,15 @@ var m = object.mixin(Base(), utilityMixin) `.mixin(..)` will copy the contents of `utilityMixin` into the prototype chain between `m` and `m.__proto__`. +We can also remove the mixin... +```javascript +m = o.mixout(m, utilityMixin) +``` + +The mixed-in data is removed iff an object is found in the chain with the +same number of attributes as `utilityMixin` and with each attribute matching +identity with the corresponding attribute in the mixin. + Constructor-based mixin... ```javascript