Process properties in place by removing and renaming them.
Properties of an object are to be renamed or removed specified by "map" argument. Only own properties of "map" are processed.
Parameter | Type | Description |
---|---|---|
bag | Object | the object to be processed |
map | Object | the dictionary for renaming (false value indicates removal of the named property) |
the original object
See the dojox/lang/oo/rearrange reference documentation for more information.
oo.rearrange(bag, { abc: "def", // rename "abc" attribute to "def" ghi: null // remove/hide "ghi" attribute });