Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! Add is-equal method
Browse files Browse the repository at this point in the history
  • Loading branch information
skad0 committed Feb 14, 2017
1 parent 6f9e2c6 commit dc49337
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions README.md
Expand Up @@ -187,15 +187,9 @@ Parameter | Type | Description

```js
const BemCell = require('@bem/cell');
const buttonCell1 = BemCell.create({
block: 'button', tech: 'css', layer: 'desktop'
});
const buttonCell2 = BemCell.create({
block: 'button', tech: 'css', layer: 'desktop'
});
const inputCell = BemCell.create({
block: 'input', tech: 'css', layer: 'common'
});
const buttonCell1 = BemCell.create({ block: 'button', tech: 'css', layer: 'desktop' });
const buttonCell2 = BemCell.create({ block: 'button', tech: 'css', layer: 'desktop' });
const inputCell = BemCell.create({ block: 'input', tech: 'css', layer: 'common' });

buttonCell1.isEqual(buttonCell2); // true
buttonCell1.isEqual(inputCell); // false
Expand Down

0 comments on commit dc49337

Please sign in to comment.