ajvincent / ajvincent/es-membrane

Dry and wet objects distinguishable by their prototype

Ouverte
#150 4 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
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.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.