@octoguide/object-utils

<dl> <dt><a href="#omitBy">omitBy</a></dt> <dd><p>remove all key, value pairs from the object that match the comparator (fn)</p> </dd> <dt><a href="#removeEmptyEntries">removeEmptyEntries</a></dt> <dd><p>remove all empty entries from the object where name

Usage no npm install needed!

<script type="module">
  import octoguideObjectUtils from 'https://cdn.skypack.dev/@octoguide/object-utils';
</script>

README

Constants

omitBy

remove all key, value pairs from the object that match the comparator (fn)

removeEmptyEntries

remove all empty entries from the object where name values pair has an empty value

getObjectNameById

get the name field from the array of objects using the id

isEmpty

checks if the entry is empty - space, 0, null, undefined

omitBy

remove all key, value pairs from the object that match the comparator (fn)

Kind: global constant

Param Type
obj *
comparator *

removeEmptyEntries

remove all empty entries from the object where name values pair has an empty value

Kind: global constant

getObjectNameById

get the name field from the array of objects using the id

Kind: global constant

Param Type Description
id String
list Array objects that have an id and name field

isEmpty

checks if the entry is empty - space, 0, null, undefined

Kind: global constant

Param Type
e *