func
Last updated
Was this helpful?
Was this helpful?
new cheddar.func(
[
["a", {}],
["b", {
Default: cheddar.init(
cheddar.number,
10, 0, 0
)
}]
],
function(scope, input) {
return cheddar.init(
cheddar.number,
10, 0,
input("a").value + input("b").value
);
}
)func.exec([
arg1, arg2, ...
], scope)func.args