CNET JS Code Documentation
Native: Hash
A collection of Hash methods.
Author: Aaron Newton
See Also:
Hash Method: getFromPath
Returns a value of an object by its path.
Syntax
myHash.getFromPath(path);
Arguments
- path - (string) the path to the key for the value you wish to retrieve
Returns
- (null or mixed) if the path has no value, null is returned; otherwise the value that corresponds to the path is returned.
Example
#H({ food: { fruits: { apples: "red", lemon: "yellow" } } }).getFromPath("food.fruits.apples"); //returns "red"
Hash Method: cleanValues
description
Syntax
myHash.cleanValues(method);
Arguments
- method - (??) description
Returns
- (??) - description
Example
//example