ajvincent / ajvincent/es-membrane
Dry and wet objects distinguishable by their prototype
Ouverte
- Langage dominant
- JavaScript
- Étoiles
- 118
- Forks
- 13
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
If wrapping a (plain empty) object in a membrane, dry and wet objects have different prototypes. Besides being distinguishable through `Object.getPrototypeOf`, they usually are logged as different strings. Example with the Node.js REPL:
```js
> wet
{}
> dry
rv {}
```
Is there any option I can pass to the membrane constructor to smooth this difference, or is this inevitable?
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Évaluation
Cette issue n'a pas encore été évaluée.