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
key
any
yes
The key to retrieve.
options
Object
no
Options to customize the behavior of the
value
function. See the Options section for more guidance.Options
Option
Type
Default
Description
predicateKey
Function
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.