Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
blockly > isPaster
Fonction isPaster()
Signature :
export declare function isPaster(obj: any): obj is IPaster<ICopyData, ICopyable<ICopyData>>;
Paramètres
Paramètre |
Type |
Description |
obj |
tous |
|
Renvoie :
obj est IPaster<ICopyData, ICopyable<ICopyData>>
"True" si l'objet donné est un paster.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2024/09/20 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Il n'y a pas l'information dont j'ai besoin","missingTheInformationINeed","thumb-down"],["Trop compliqué/Trop d'étapes","tooComplicatedTooManySteps","thumb-down"],["Obsolète","outOfDate","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Mauvais exemple/Erreur de code","samplesCodeIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2024/09/20 (UTC)."],[[["The `isPaster()` function determines if a given object is a paster, returning true if it is and false otherwise."],["This function accepts any object as input and uses type guards to check if it conforms to the `IPaster` interface."],["A paster, according to this context, is an object that manages the pasting of copied data, potentially adhering to interfaces like `ICopyData` and `ICopyable` for data handling."]]],["The `isPaster()` function determines if a given object is a \"paster.\" It accepts any object as input (`obj`). The function's return value indicates whether the provided object conforms to the `IPaster` interface, using type guards, and further specifies that it utilizes `ICopyData` and `ICopyable` for its operations. If it is a paster then the return will be true. Otherwise, it will be false.\n"]]