Add string example to isEmpty docs (#3647)

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.
This commit is contained in:
Dean Merchant
2018-02-17 18:47:32 +00:00
committed by John-David Dalton
parent 7f24cab7dd
commit 678eb000b7

View File

@@ -36,6 +36,9 @@ const hasOwnProperty = Object.prototype.hasOwnProperty
* isEmpty([1, 2, 3])
* // => false
*
* isEmpty('abc')
* // => false
*
* isEmpty({ 'a': 1 })
* // => false
*/