UNPKG
nextjs
Version:
latest (0.0.3)
0.0.3
0.0.2
0.0.1
The fastest async handler in node.js
nextjs
/
index.js
4 lines
•
168 B
JavaScript
View Raw
1
2
3
4
module
.
exports
=
function
(
number
, callback
){
var
c =
0
;
if
(
number
==
0
){
callback
(); }
return
function
(
){ c++;
if
(c ==
number
){ callback.
apply
(
this
,
arguments
); } } }