ArrayOfObjectsFilterKeys Op

ArrayOfObjectsFilterKeys

remove key-value pairs from objects in an array of objects


<p>Use this op on an array of objects to &quot;slim out&quot; objects.</p> <pre><code>var obj = { animal: &quot;dog&quot;, humanoid: &quot;arnold from terminator 2&quot;, lunch: &quot;pasta&quot; };

// specify keys humanoid &amp; lunch, the resulting object becomes obj = { humanoid: &quot;arnold from terminator 2&quot;, lunch: &quot;pasta&quot; }

// inverting the filter, the resulting object becomes obj = { animal: &quot;dog&quot; } </code></pre>


Full Name
  • Ops.Array.ArrayOfObjectsFilterKeys
Visibility
  • Core Op - Official cables op
License
  • MIT
Authorgithub


INPUT PORTS


Array (Array)

<p>array of objects input</p>

Keys (String)

<p>keys to keep in the objects</p>

Seperator (String)

<p>the character to seperate the keys</p>

Invert Filter (Number:

<i>boolean</i>

)

<p>inverts the operation, drops all specified keys</p>

OUTPUT PORTS


Array Out (Array)

<p>the resulting array of objects</p>


Patches using ArrayOfObjectsFilterKeys

  • Examples
  • Public
  • My Patches

Changelog


created opuser avatarsimod - 2020-04-14 14:22
Ops.User.simod.ArrayOfObjectsFilterKeys renamed to Ops.Array.ArrayOfObjectsFilterKeysuser avatarsimod - 2020-04-14 17:31