mirror of
https://git.tesses.org/tesses50/crosslangextras.git
synced 2026-06-01 18:35:32 +00:00
12 lines
204 B
Plaintext
12 lines
204 B
Plaintext
func FuncWithThis(
|
|
function,
|
|
thisVal
|
|
)
|
|
{
|
|
return ($$args)=>{
|
|
const newArgs = [thisVal];
|
|
each(var item : args) newArgs.Add(item);
|
|
|
|
return function.Call(newArgs);
|
|
};
|
|
} |