associative array delete
Updated on August 22, 2024Source codeTests
createAssociativeArrayDelete
is a link that deletes an entry from an associative array.
Create delete
Call createAssociativeArrayDelete
with these parameters to create your delete
function:
Parameter
Type
Required
Description
key
any
yes
The key to delete.
options
Object
no
Options to customize the behavior of the
delete
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 looking for.