Exemplo n.º 1
0
exports.each = function (){
  var l = [234,543,1,44,5555,534,6,456]
    , o = {a: 123, b: 123, c:'sdf', l: l}
    , count = 0
    sync.each(l,value)
    sync.each(o,value)

    sync.each(l,cnt)

    test.equal(count,8)
    count = 0

    sync.each(o,cnt)
    test.equal(count,4)
    
    function cnt(){
      count ++
    }
}