Stay organized with collections
Save and categorize content based on your preferences.
blockly > isDeletable
isDeletable() function
Returns whether the given object is an IDeletable.
Signature:
export declare function isDeletable(obj: any): obj is IDeletable;
Parameters
Parameter |
Type |
Description |
obj |
any |
|
Returns:
obj is IDeletable
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."],[[["\u003cp\u003eThe \u003ccode\u003eisDeletable()\u003c/code\u003e function determines if a given object implements the \u003ccode\u003eIDeletable\u003c/code\u003e interface.\u003c/p\u003e\n"],["\u003cp\u003eIt accepts any object as input (\u003ccode\u003eobj\u003c/code\u003e) and returns a boolean indicating whether the object is an \u003ccode\u003eIDeletable\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThis function is useful for type checking and ensuring an object can be deleted before attempting a deletion operation.\u003c/p\u003e\n"]]],[],null,["[blockly](./blockly.md) \\\u003e [isDeletable](./blockly.isdeletable_1_function.md)\n\nisDeletable() function\n----------------------\n\nReturns whether the given object is an IDeletable.\n\n**Signature:** \n\n export declare function isDeletable(obj: any): obj is IDeletable;\n\nParameters\n----------\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| obj | any | |\n\n**Returns:**\n\nobj is [IDeletable](./blockly.ideletable_interface.md)"]]