Hi,
Defined an javascript extension and update the code like below,
var names = [xxx, yyy, zzz];
function checkusers(){
//do something
}
What i need is to map XWiki users list. Something like below
var names = XWiki.Users;
So that i can process with the list of users in client side.
Note: checked this link