Espruino/tests/test_function_apply.js
2013-10-10 19:05:25 +01:00

5 lines
122 B
JavaScript

function a(a,b,c) { return a+b+c; }
var v = a.apply(undefined,["hi ","there"," world"]);
result = v == "hi there world";