Namespace: DuJSObj

DuJSObj

JS Objects related methods

Methods

staticDuJSObj.clear(obj, ignoredProperties)

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 425
Deletes all properties from an object, except a predefined list.
Name Type Description
obj object The object to clear.
ignoredProperties Array.<string> optional The properties to keep

staticDuJSObj.sort(obj, reverse, compareFn){object}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 391
Sorts object keys and returns a new sorted object.
Name Type Default Description
obj object The object to sort.
reverse bool false optional Set to true to sort in the reverse order.
compareFn function optional Specifies a function that defines the sort order. Note that this parameter is ignored if reversed is true.
If omitted, the keys are converted to strings, then sorted according to each character's Unicode code point value.
Returns:
Type Description
object The new sorted object.