> Functions
Returns the type of the value value, among the following types:
null value.true or false.12, -0.15, 10L."hello".[1, 2, 3].[a: 5, b: true].{a: 5, b: true}.class A { }.function() {}.[0..9].In JavaScript, typeof value returns a string — "number", "string", "boolean", "function", "object", "undefined" — and not a numeric constant like typeOf in LeekScript. Two classic pitfalls: typeof [] and typeof null are both "object". Use Array.isArray(value) to recognize an array, value === null for null, and instanceof for the rest: value instanceof Map, value instanceof Cell, value instanceof Entity.
In Python, type(value) returns the class of the value and not a numeric constant like typeOf in LeekScript: type([]) is `, and type(value).__name__ gives "list", "bool", "Cell"… To test a type, always write isinstance(value, list) rather than type(value) is list: the engine wraps list, dict, set, tuple and frozenset to count operations, so type([]) is list is False while isinstance([], list) is True. As a bonus, isinstance accepts a tuple of types, isinstance(x, (int, float))`, and recognizes subclasses.
Impossible de charger les données du jeu.
Vérifiez votre connexion et réessayez.