Skip to content

Commit

Permalink
Add string example to isEmpty docs (#3647)
Browse files Browse the repository at this point in the history
While this is covered in the the description above, there exist examples for arrays and objects and I think this gives 'at a glance' confirmation that the function works as intended with strings.
  • Loading branch information
Dean177 authored and jdalton committed Feb 17, 2018
1 parent 7f24cab commit 678eb00
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions isEmpty.js
Expand Up @@ -36,6 +36,9 @@ const hasOwnProperty = Object.prototype.hasOwnProperty
* isEmpty([1, 2, 3])
* // => false
*
* isEmpty('abc')
* // => false
*
* isEmpty({ 'a': 1 })
* // => false
*/
Expand Down

0 comments on commit 678eb00

Please sign in to comment.