ArrayGetNumberByPath Op

ArrayGetNumberByPath

finds a number at a position in an array defined by path


<p>useful when working with nested data structures.</p> <p>the path defines the way to the number. the number will be returned</p> <p>given an array like this:</p> <pre><code>[ 1,2,3,4,5] </code></pre> <p>a path of 1 will return <code>2</code>:</p>


Full Name
  • Ops.Data.JsonPath.ArrayGetNumberByPath
Visibility
  • Core Op - Official cables op
License
  • MIT
Authorgithub


INPUT PORTS


Array (Array)
Path (String)

<p>the past (i.e. person.age)</p>

OUTPUT PORTS


Output (Number)

<p>the number</p>

Found (

<i>boolean</i>

Number)


Patches using ArrayGetNumberByPath

  • Examples
  • Public
  • My Patches

Changelog


cloned op from Ops.Json.ObjectGetNumberByPathuser avatarcables - 2021-01-08 17:26
Ops.User.cables.ArrayGetNumberByPath renamed to Ops.Json.ArrayGetNumberByPathuser avatarcables - 2021-01-08 17:29