Skip to content

Commit

Permalink
little docs tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
tunnckoCore committed Feb 11, 2016
1 parent 3910d8e commit 3b3aa35
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@


## 1.0.3 - 2016-02-11
- Release v1.0.3 / npm@v1.0.3
- no breaking changes: repo boilerplate stuff, license year range, travis builds, links
- simplify tests
- add readme docs and docs comments
- add `extra` option, that allows you to disable checks (pass `false`) for generator and generator function
+ actually it will return it's actual type (generator is object, generator function is function)
+ otherwise it will return `'generator'` when generator and `'generatorfunction'` for generator function

## 1.0.2 - 2016-02-10
- Release v1.0.1 / npm@v1.0.2
- lock for now to `then-got@1` not `then-got@2` used in tests
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2016 Charlike Mike Reagent
Copyright (c) 2015-2016 Charlike Mike Reagent

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ kindof(new Error('foo')) //=> 'error'
kindof(Promise.resolve(42)) //=> 'promise'
kindof(function * () { yield 43 }) //=> 'generatorfunction'
kindof(function * () { yield 43 }, false) //=> 'function'
kindof((a, b) => {return a * b}) // => 'function'
kindof((a, b) => { return a + b }) // => 'function'
```


Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ var kindOf = require('kind-of')
* kindof(Promise.resolve(42)) // => 'promise'
* kindof(function * () { yield 43 }) // => 'generatorfunction'
* kindof(function * () { yield 43 }, false) // => 'function'
* kindof((a, b) => {return a * b}) // => 'function'
* kindof((a, b) => { return a + b }) // => 'function'
* ```
*
* @param {Mixed} `val` value to check what type is
Expand Down

0 comments on commit 3b3aa35

Please sign in to comment.