TC.getParam

Returns the value of the specified parameter.

TC.getParam(name);

Arguments

name. (string) Name of the parameter.

Return value

A promise that is fulfilled with a string. If the parameter exists, it returns its value. If the parameter does not exist, it returns an empty string.

Example

Copy code
(async ()=>{
    let param = await TC.getParam("myParam");
})();