structInsert

Inserts a key-value pair into a structure.

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

structInsert Argument Reference

structure struct
Required

Structure to contain the new key-value pair.

key string
Required

Key that contains the inserted value.

value any
Required

Value to add.

allowoverwrite boolean
Default: false

Whether to allow overwriting a key. Default: False.
Values:
  • true
  • false

Fork me on GitHub