JSAnyOperatorExtension extension
General-purpose JavaScript operators.
Indexing operators ([]
, []=
) should be declared through operator
overloading instead like:
external operator int [](int key);
All operators in this extension shall accept and return only JS types.
- on
Properties
Methods
-
add(
JSAny? any) → JSAny -
The result of
this +
in JavaScript.any
-
and(
JSAny? any) → JSAny? -
The result of
this &&
in JavaScript.any
-
divide(
JSAny? any) → JSAny -
The result of
this /
in JavaScript.any
-
equals(
JSAny? any) → JSBoolean -
The result of
this ==
in JavaScript.any
-
exponentiate(
JSAny? any) → JSAny -
The result of
this **
in JavaScript.any
-
greaterThan(
JSAny? any) → JSBoolean -
The result of
this >
in JavaScript.any
-
greaterThanOrEqualTo(
JSAny? any) → JSBoolean -
The result of
this >=
in JavaScript.any
-
lessThan(
JSAny? any) → JSBoolean -
The result of
this <
in JavaScript.any
-
lessThanOrEqualTo(
JSAny? any) → JSBoolean -
The result of
this <=
in JavaScript.any
-
modulo(
JSAny? any) → JSAny -
The result of
this %
in JavaScript.any
-
multiply(
JSAny? any) → JSAny -
The result of
this *
in JavaScript.any
-
notEquals(
JSAny? any) → JSBoolean -
The result of
this !=
in JavaScript.any
-
or(
JSAny? any) → JSAny? -
The result of
this ||
in JavaScript.any
-
strictEquals(
JSAny? any) → JSBoolean -
The result of
this ===
in JavaScript.any
-
strictNotEquals(
JSAny? any) → JSBoolean -
The result of
this !==
in JavaScript.any
-
subtract(
JSAny? any) → JSAny -
The result of
this -
in JavaScript.any
-
unsignedRightShift(
JSAny? any) → JSNumber -
The result of
this >>>
in JavaScript.any