Javascript Set Array To Another Arraylist Api