This repository was archived by the owner on Feb 4, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change 105
105
* [ isEqual(entityName)] ( #isequalentityname )
106
106
* [ toString()] ( #tostring )
107
107
* [ valueOf()] ( #valueof )
108
+ * [ isBemEntityName()] ( #isbementityname )
108
109
109
110
### constructor(obj)
110
111
@@ -193,7 +194,6 @@ Parameter | Type | Description
193
194
-------------|-----------------|-----------------------
194
195
` entityName ` | ` BemEntityName ` | The entity to compare.
195
196
196
-
197
197
Determines whether specified entity is the deepEqual entity.
198
198
199
199
``` js
@@ -233,6 +233,23 @@ name.valueOf();
233
233
// ➜ { block: 'button', mod: { name: 'focused', value: true } }
234
234
```
235
235
236
+ ### isBemEntityName()
237
+
238
+ Determines whether specified entity is instance of BemEntityName.
239
+
240
+ Parameter | Type | Description
241
+ -------------|-----------------|-----------------------
242
+ ` entityName ` | ` BemEntityName ` | The entity to check.
243
+
244
+ ``` js
245
+ const BemEntityName = require (' @bem/entity-name' );
246
+
247
+ const entityName = new BemEntityName ({ block: ' input' });
248
+
249
+ BemEntityName .isBemEntityName (entityName); // true
250
+ BemEntityName .isBemEntityName ({}); // false
251
+ ```
252
+
236
253
Debuggability
237
254
-------------
238
255
You can’t perform that action at this time.
0 commit comments