Skip to content

Commit

Permalink
docs(typeOf): remove typeOf method
Browse files Browse the repository at this point in the history
  • Loading branch information
blond committed Dec 10, 2016
1 parent 98eaf73 commit 14cf6af
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,36 +172,6 @@ bemNaming.stringify({
}); // 'block__elem_mod_val'
```

### `typeOf(str)`

Returns a string indicating the type of the BEM entity.

Example:

```js
const bemNaming = require('bem-naming');

bemNaming.typeOf('block'); // block
bemNaming.typeOf('block_mod'); // blockMod
bemNaming.typeOf('block__elem'); // elem
bemNaming.typeOf('block__elem_mod'); // elemMod
```

### typeOf(obj)

Returns a string indicating the type of the BEM entity.

Example:

```js
const bemNaming = require('bem-naming');

bemNaming.typeOf({ block: 'block' }); // block
bemNaming.typeOf({ block: 'block', modName: 'mod' }); // blockMod
bemNaming.typeOf({ block: 'block', elem: 'elem' }); // elem
bemNaming.typeOf({ block: 'block', elem: 'elem', modName: 'mod' }); // elemMod
```

### elemDelim

String to separate elem from block.
Expand Down

0 comments on commit 14cf6af

Please sign in to comment.