با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
blockly > isIcon
تابع isIcon()
محافظ تایپ کنید که بررسی می کند آیا شی داده شده یک IIcon است یا خیر.
امضا:
export declare function isIcon(obj: any): obj is IIcon;
پارامترها
پارامتر | تایپ کنید | توضیحات |
---|
obj | هر | |
برمی گرداند:
obj IIcon است
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-01-10 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","easyToUnderstand","thumb-up"],["مشکلم را برطرف کرد","solvedMyProblem","thumb-up"],["غیره","otherUp","thumb-up"]],[["اطلاعاتی که نیاز دارم وجود ندارد","missingTheInformationINeed","thumb-down"],["بیشازحد پیچیده/ مراحل بسیار زیاد","tooComplicatedTooManySteps","thumb-down"],["قدیمی","outOfDate","thumb-down"],["مشکل ترجمه","translationIssue","thumb-down"],["مشکل کد / نمونهها","samplesCodeIssue","thumb-down"],["غیره","otherDown","thumb-down"]],["تاریخ آخرین بهروزرسانی 2025-01-10 بهوقت ساعت هماهنگ جهانی."],[[["`isIcon()` is a type guard function in Blockly."],["It checks if a given object is an instance of the `IIcon` interface."],["The function accepts any object as input and returns a boolean indicating whether the object is an `IIcon`."]]],["The `isIcon()` function is a type guard that determines if an object is an `IIcon`. It accepts any object (`obj`) as input. The function returns a boolean, indicating whether the input object satisfies the `IIcon` interface. The primary action is to verify the type of the provided object against the `IIcon` definition, ensuring type safety within the code.\n"]]