Blockly, 10 Kasım 2025'te Raspberry Pi Vakfı'na taşınıyor. Blogu ve SSS bölümünü inceleyin.
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
blockly > isIcon
isIcon() işlevi
Belirtilen nesnenin bir IIcon olup olmadığını kontrol eden tür koruyucu.
İmza:
export declare function isIcon(obj: any): obj is IIcon;
Parametreler
| Parametre |
Tür |
Açıklama |
| obj |
herhangi |
|
Şunu döndürür:
obj: IIcon
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-25 UTC.
[null,null,["Son güncelleme tarihi: 2025-07-25 UTC."],[],["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"]]