From 678eb000b7b57a8db4d9ac356417d0b13afc1ef5 Mon Sep 17 00:00:00 2001 From: Dean Merchant Date: Sat, 17 Feb 2018 18:47:32 +0000 Subject: [PATCH] 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. --- isEmpty.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/isEmpty.js b/isEmpty.js index 9876cc38d..c443f4410 100644 --- a/isEmpty.js +++ b/isEmpty.js @@ -36,6 +36,9 @@ const hasOwnProperty = Object.prototype.hasOwnProperty * isEmpty([1, 2, 3]) * // => false * + * isEmpty('abc') + * // => false + * * isEmpty({ 'a': 1 }) * // => false */