nx Class
Methods
compare
(
Number
-
target
-
source
Compare target and source.
Returns:
Number:
The result could be -1,0,1 which indicates the comparison result.
each
(
-
target
-
callback
-
context
Iterate over target and execute the callback with context.
get
(
-
target
-
name
Get the specified property value of target.
Returns:
:
The value.
gets
(
Object
-
target
Get all properties of target.
Parameters:
-
target
ObjectThe target Object.
Returns:
Object:
An object contains all keys and values of target.
path
(
-
target
-
path
-
[value]
Get value from target specified by a path and optionally set a value for it.
Parameters:
Returns:
:
set
(
-
target
-
name
-
value
Set the specified property of target with value.