hlp 3.3.1 → 3.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -290,6 +290,9 @@ hlp.findAllPositionsCaseInsensitive('FoO', 'this is a FOO and a foobar') // [10,
290
290
  hlp.highlight('that is a search string', 'is') // that <strong class="highlight">is</strong> a search string
291
291
  hlp.highlight('abc def geh ijk lmn opq rst abc def geh ijk lmn opq rst', 'ijk', true, 5) // '... geh <strong class="highlight">ijk</strong> lmn ... geh <strong class="highlight">ijk</strong> lmn ...'
292
292
 
293
+ // remove empty elements from array
294
+ hlp.removeEmpty(['foo',null,[],'','bar']) // ['foo','bar']
295
+
293
296
  // return unique array (remove duplicate values, order-safe)
294
297
  hlp.uniqueArray(['foo','bar','foo','baz']) // ['foo','bar','baz']
295
298