fcf.resolve() function
Package: fcf-framework-core
File: fcf-framework-core:fcf.js
Available from version: 2.0.2
Returns a subfield of the object at the specified path
Arguments
- The object from which the subfield will be selected
- The path to the subfield to extract. See the path format in the description of the function fcf.parseObjectAddress
- If true , then if getting a subfield is performed on a non-object field, undefined is returned
If set to
Result
- The value of the found subfield
Example: Function application
{
let object = {
field1: {
field2: "value",
}
}
let value = fcf.resolve(object, "field1.field2");
console.log(value);
}
Output:
value