blockly > isVariableBackedParameterModel
isVariableBackedParameterModel() function
Returns whether the given object is a variable holder or not.
Signature:
export declare function isVariableBackedParameterModel(param: IParameterModel): param is IVariableBackedParameterModel;
Parameters
Returns:
param is IVariableBackedParameterModel
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[null,null,["Last updated 2024-09-18 UTC."],[[["Determines if an object is a variable holder using the `isVariableBackedParameterModel()` function."],["This function accepts an `IParameterModel` object as input and returns true if it's an `IVariableBackedParameterModel`, indicating it holds a variable."]]],["The `isVariableBackedParameterModel()` function determines if a given object is a variable holder. It accepts a parameter of type `IParameterModel` and returns a boolean indicating whether this parameter is also of type `IVariableBackedParameterModel`. The function's core action is to check the type of the input `param` against the `IVariableBackedParameterModel` interface, providing a true/false answer regarding its variable-holding capability.\n"]]