Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
blockly > isSelectable
Funzione isSelectable()
Verifica se l'oggetto specificato è un ISelectable.
Firma:
export declare function isSelectable(obj: object): obj is ISelectable;
Parametri
Parametro |
Tipo |
Descrizione |
obj |
oggetto |
|
Restituisce:
obj è ISelectable
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-05-16 UTC.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Mancano le informazioni di cui ho bisogno","missingTheInformationINeed","thumb-down"],["Troppo complicato/troppi passaggi","tooComplicatedTooManySteps","thumb-down"],["Obsoleti","outOfDate","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Problema relativo a esempi/codice","samplesCodeIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-05-16 UTC."],[[["The `isSelectable()` function determines if a given object implements the `ISelectable` interface."],["This function accepts an object as input and returns a boolean indicating whether the object is selectable or not."],["The signature is `export declare function isSelectable(obj: Object): obj is ISelectable;` which indicates it is type-guarded to ISelectable."]]],["The `isSelectable()` function determines if an object is an `ISelectable`. It takes a single parameter, `obj`, of type `Object`. The function's signature is `export declare function isSelectable(obj: Object): obj is ISelectable;`. The function returns a boolean value indicating whether the provided object is of type `ISelectable`. The parameter description lacks further detail, but the type `Object` suggest it could be any data type.\n"]]