mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-12 11:57:49 +00:00
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:
committed by
John-David Dalton
parent
7f24cab7dd
commit
678eb000b7
@@ -36,6 +36,9 @@ const hasOwnProperty = Object.prototype.hasOwnProperty
|
|||||||
* isEmpty([1, 2, 3])
|
* isEmpty([1, 2, 3])
|
||||||
* // => false
|
* // => false
|
||||||
*
|
*
|
||||||
|
* isEmpty('abc')
|
||||||
|
* // => false
|
||||||
|
*
|
||||||
* isEmpty({ 'a': 1 })
|
* isEmpty({ 'a': 1 })
|
||||||
* // => false
|
* // => false
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user