Skip to content
This repository has been archived by the owner on Feb 4, 2018. It is now read-only.

Use WeakSet to not create same instances #103

Open
blond opened this issue Apr 14, 2017 · 0 comments
Open

Use WeakSet to not create same instances #103

blond opened this issue Apr 14, 2017 · 0 comments
Milestone

Comments

@blond
Copy link
Member

blond commented Apr 14, 2017

const BemEntityName = require('@bem/entity-name');

const buttonName1 = new BemEntityName({ block: 'button' });
const buttonName2 = new BemEntityName({ block: 'button' });

buttonName1 === buttonName2 // true
@blond blond mentioned this issue Apr 15, 2017
@blond blond added this to the 2.0 milestone Apr 15, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant