Survei Riset: Ceritakan pengalaman Anda dengan Blockly
Mulai survei
blockly > isDraggable
Fungsi isDraggable()
Menampilkan apakah objek yang ditentukan adalah IDraggable atau bukan.
Tanda Tangan:
export declare function isDraggable(obj: any): obj is IDraggable;
Parameter
Parameter |
Jenis |
Deskripsi |
obj |
apa pun |
|
Hasil:
obj adalah IDraggable
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2024-09-12 UTC.
[null,null,["Terakhir diperbarui pada 2024-09-12 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"]]