Generic helper for functions.

Static methods

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.

staticfn<T>(fn:() ‑> T, restArgs:Dynamic):Dynamic

Lambda expressions

staticidentity<T>(value:T):T

The identity function returns the value of its argument.

staticnoop():Void

noop is a function that has no side effects and doesn't return any value.

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