Echo JS 0.11.0

<~>
qubyte 2400 days ago. link parent 3 points
A function could be written to apply list of mixins in one shot.

```
const applyMixins = (object, ...mixins) => mixins.forEach(m => m(object));
```

The way of creating mixins would remain the same underneath though. This library relies on a function call to create a mixin so that a WeakSet is created. This WeakSet is needed to keep a record of objects the mixin is later applied to.

Replies