Conformance Examples 0.1.0 — Transforms: transform-find_index¶
find_index-property-value¶
With two arguments, returns the index of the first struct whose property equals the value.
Template
Context
Output
find_index-property-truthy¶
With one argument, returns the index of the first struct whose property is truthy.
Template
Context
Output
find_index-no-match-is-null¶
When nothing matches, the result is null.
Template
Context
Output
find_index-non-list-is-null¶
find_index operates only on lists; a string input yields null.
Template
Context
Output
find_index-non-struct-contents-is-null¶
find_index expects a list of structs; non-struct contents yield null.
Template
Context
Output
Source fixture: transforms/transform-find_index.json