structInsert

Inserts a key-value pair into a structure.

structInsert(structure, key, value [, allowoverwrite]) → returns boolean

structInsert Argument Reference

structure
Required

Structure to contain the new key-value pair.

key
Required

Key that contains the inserted value.

value
Required

Value to add.

allowoverwrite
Default: NO

Whether to allow overwriting a key. Default: False.

Fork me on GitHub