StructInsert

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

Method Signature

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

Arguments

ArgumentTypeRequiredDescriptionDefault

struct

modifiableStruct

true

The target struct

key

string

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