[Pas2js] missing definitions
warleyalex
warleyalex at yahoo.com.br
Thu Aug 29 13:18:58 CEST 2019
TJSArrayMapEventArray = reference to function (element : TJSValueDynArray;
index: NativeInt; anArray : TJSArray) : JSValue;
Function map(const aCallBack : TJSArrayMapEventArray) : JSValue; overload;
-----------------------------------
{test case}
var
nameLengths: JSValue;
JavaTpoint: array of JSValue;
begin
JavaTpoint := ['JavaTpoint','C','C++','RDBMS'];
nameLengths := TJSArray(JavaTpoint).map(
function (element: {JSValue}TJSValueDynArray; index: NativeInt;
anArray : TJSArray) : JSValue
begin
Result := TJSArray(element).length; //
end);
nameLengths; // expected output: [10, 1, 3, 5]
-----------------------------------
--
Sent from: http://pas2js.38893.n8.nabble.com/
More information about the Pas2js
mailing list