associative array value
Updated on August 22, 2024Source codeTests
createAssociativeArrayValue is a pipe that retrieves a value from an associative array.
Create value
Call createAssociativeArrayValue with these parameters to create your value function:
Parameter
Type
Required
Description
keyany
yes
The key to retrieve.
optionsObject
no
Options to customize the behavior of the
value function. See the Options section for more guidance.Options
Option
Type
Default
Description
predicateKeyFunction
Strict equality check
A function that accepts a key and returns a boolean indicating whether or not the key matches the one you're trying to retrieve.