jquery Arrays, how to use each
<p>I current have the following which works well:</p>

<pre><code>channel.bind('pusher:subscription_succeeded', function(members) {
    members.each(set_status_online);
})


function set_status_online(member) {
    var user_temp;
    user_temp = findWallUser(member.info.uid);
    if (user_temp) {
        user_temp.status('online');
    }
    else {
        console.log('user not found');
    }
}
</code></pre>

<p>I am trying to update the first part to give me more control of the members.each. I want something like this:</p>

<pre><code>channel.bind('pusher:subscription_succeeded', function(members) {
    members.each {
       set_status('online');
    }
})
</code></pre>

<p>Is there a way I can do that with the array &amp; .each? thanks</p>
