Member: restUtil¶
Utility object containing logic that is completely orthogonal from REST
restUtil Methods¶
(static) -> isEmpty(obj)¶
Returns true if an object is empty
Name | Required | Type | Default Value | Description |
---|---|---|---|---|
obj | Y | Object | object to check |
Type | Description |
---|---|
boolean | true if the object is null or empty |
(static) -> isValidTextInput()¶
(static) -> extend(target, base)¶
extend base object properties onto the target object. if both define the same property, then target’s property wins. Supports aspected programming.
Name | Required | Type | Default Value | Description |
---|---|---|---|---|
target | Y | |||
base | Y |
base.start$before ()-> say '1'
base.start$after ()-> say '3'
target.start ()-> say '2'
before:
target.start() : say '2'
after:
restUtil.extend(target, base);
target.start() :
say '1'
say '2'
say '3'
(static) -> contains(arry, func)¶
check if an elem is contains in array
Name | Required | Type | Default Value | Description |
---|---|---|---|---|
arry | Y | |||
func | Y |
Type | Description |
---|---|
boolean |