Generic helper for functions.
staticinlineapplyTo<A, B>(f:A ‑> B, a:A):B
Extension method for function application with a function to an argument.
staticequality<T>(a:T, b:T):Bool
It provides strict equality between the two arguments a and b.
a
b
staticfn<T>(fn:() ‑> T, restArgs:Dynamic):Dynamic
Lambda expressions
staticidentity<T>(value:T):T
The identity function returns the value of its argument.
identity
staticnoop():Void
noop is a function that has no side effects and doesn't return any value.
noop
staticinlinepassTo<A, B>(a:A, f:A ‑> B):B
Extension method for function application to an argument with a function.
staticwith(context:Dynamic, body:Dynamic):Dynamic