ArrayOfObjectsFilterKeys Op
remove key-value pairs from objects in an array of objects
Summary (oneliner)
<p>Use this op on an array of objects to "slim out" objects.</p> <pre><code>var obj = { animal: "dog", humanoid: "arnold from terminator 2", lunch: "pasta" };
// specify keys humanoid & lunch, the resulting object becomes obj = { humanoid: "arnold from terminator 2", lunch: "pasta" }
// inverting the filter, the resulting object becomes obj = { animal: "dog" } </code></pre>
- Ops.Array.ArrayOfObjectsFilterKeys
- Core Op - Official cables op
- MIT
Documentation (markdown)
Issues
Example patch id
Youtube ids (comma seperated)
Op Licence
Caniuse query
Example Patch ArrayOfObjects ops example
INPUT PORTS
<p>array of objects input</p>
<p>keys to keep in the objects</p>
<p>the character to seperate the keys</p>
<i>boolean</i>
)<p>inverts the operation, drops all specified keys</p>
OUTPUT PORTS
<p>the resulting array of objects</p>