Skip to content

Commit

Permalink
notes
Browse files Browse the repository at this point in the history
  • Loading branch information
radiovisual committed Feb 19, 2016
1 parent 827b246 commit 54c9b46
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,15 @@ boom().if(str).not.typeof('string');

Both blocks of code do the exact same thing (they throw the exact same error, if applicable), but detonate does the same with less code, and better readability.

You can also do the same thing with detonate's readability enhancers and aliases. For example, all of these statements are equivalent, you can work with the style you like the best:
You can also do the same thing with detonate's readability enhancers and aliases. For example, all of these statements are equivalent; You can work with the style you like the best:

```js

// is.not.a
boom().if(str).is.not.a('string');
boom().if(str).not.a('string');

// is.not.typeof
boom().if(str).is.not.typeof('string');
boom().if(str).not.typeof('string');
```
Expand Down

0 comments on commit 54c9b46

Please sign in to comment.