def at
import emerging-ezjson@1.3.0.0/src/value.bend as Valueimport Base
343# an array's item at an index; JNull when it is not an array or has none
344def at(val: Json, idx: U32) -> Json:
345 match val:
346 case JArr{items}:
347 at.go(items, idx)
348 case other:
349 JNull{}