Closed blond closed 8 years ago
We should move typeOf method from bem-naming (https://github.com/bem-sdk/bem-naming/issues/98).
typeOf
bem-naming
API:
const BemEntityPart = require('bem-entity-part'); BemEntityPart.typeOf({ block: 'button', elem: 'text' }); // elem
This method should support BemEntityName instances and objects with block, elem, mod properties.
BemEntityName
block
elem
mod
Guess we can close this since
> new BemEntityName({block: 'b'}).type 'block'
right?
We should move
typeOf
method frombem-naming
(https://github.com/bem-sdk/bem-naming/issues/98).API:
This method should support
BemEntityName
instances and objects withblock
,elem
,mod
properties.