StructInsert

Inserts a key/value pair in to a struct - with an optional overwrite argument

Method Signature

StructInsert(struct=[modifiableStruct], key=[any], value=[any], overwrite=[boolean])

Arguments

ArgumentTypeRequiredDescriptionDefault

struct

modifiableStruct

true

The target struct

key

any

true

The struct key

value

any

true

The value to assign for the specified key

overwrite

boolean

false

Whether to overwrite the existing value if the key exists ( default: false )

false

Examples

Last updated

Logo

Copyright & Register Trademark by Ortus Solutions, Corp & Ortus Software, LLC