Function array

  • Creates a Java array with elements of the specified type, from a JavaScript array elements. The resulting Java array behaves like a JS array, but can be passed by reference to Java APIs in order to allow them to modify its contents.

    Parameters

    • type: string

      Type name of elements.

    • elements: any[]

      Array of JavaScript values to use for constructing the Java array.

    Returns any[]

Generated using TypeDoc