Stay organized with collections
Save and categorize content based on your preferences.
blockly > isDraggable
isDraggable() function
Returns whether the given object is an IDraggable or not.
Signature:
export declare function isDraggable(obj: any): obj is IDraggable;
Parameters
Parameter |
Type |
Description |
obj |
any |
|
Returns:
obj is IDraggable
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["The `isDraggable()` function determines if a given object implements the `IDraggable` interface."],["It accepts any object as input (`obj`) and returns a boolean indicating whether the object is draggable."],["If the object is draggable, it is treated as an `IDraggable` type within the function's scope."]]],["The `isDraggable()` function determines if an object is of the `IDraggable` type. It accepts a single parameter, `obj` of any type, and returns a boolean indicating whether `obj` conforms to the `IDraggable` interface. The function's core purpose is to check the object's type against `IDraggable`. It is declared as an exported function.\n"]]