Skip to content

Instantly share code, notes, and snippets.

@d3x0r
Last active December 16, 2018 23:15
Show Gist options
  • Save d3x0r/f153e3b46eb19c1327e9840a58568230 to your computer and use it in GitHub Desktop.
Save d3x0r/f153e3b46eb19c1327e9840a58568230 to your computer and use it in GitHub Desktop.
function call
function { arg1: 3, arg2: 4 }
{
arg1: 3,
arg2: 4
}
Object[] (
that = this = those;
)
//-----------------------------------
f(
if( that ) {
that.x += arg.arg1;
that.y += arg.arg2;
}
)
g(
out {
out.x *= in.arg1;
out.y *= in.arg2;
}
)
Number( out { out = this } )
~( out && in { out = ~in } )
!( out && in { out = !in } )
+( out && in { out = out + in } )
-( out && in { out = out - in } in { out = -in } )
&&( out = (out&&in)?in:false )
||( out = (in)?in:out )
args : { arg1: 3, arg2: 4 },
result : { x : 1, y: 3 },
value: 3.14,
defaultString: "Hello World",
(
result = function args
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment