* Converts a Java array of booleans to a JavaScript boolean array.
*
* @param bits array of booleans to convert.
*/
public static JsArrayBoolean toJsArrayBoolean(boolean... bits) {
JsArrayBoolean result = JsArrayBoolean.createArray().cast();
for (int i = 0; i < bits.length; i++) {
result.set(i, bits[i]);
}
nativePatchConstructorForSafari(result);
return result;
}