remove properties
- Command
-
The remove properties command takes the name of a property or a list of names and removes each of those properties from the target object if they are present. If a property list is given, its values are ignored but its keys are used as the list of properties to be removed.
-
Examples:
set myObj to {A:1, B:2, C:3, D:4}remove property {B:765} from myObjput myObj --> {A:1, C:3, D:4}remove properties ["B","C"] from myObjput myObj --> (A:1, D:4) -
Syntax: remove [property | {the} properties {of | in}] propertiesToRemove [of | in | from] propertyListVariable
-
Related: add properties, retain properties, replace properties, rename properties, removing properties
-