UNPKG
nodecopter-leap
Version:
latest (0.0.1)
0.0.1
0.0.0
control your drone with the Leap Motion controller
gillesruppert/nodecopter-leap
nodecopter-leap
/
throttle-log.js
12 lines
(7 loc)
•
214 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
var
_ =
require
(
'underscore'
);
module
.
exports
=
function
(
throttle
) { throttle = throttle !=
null
? throttle :
500
;
return
_.
throttle
(
function
(
) {
console
.
log
.
apply
(
null
,
arguments
); }, throttle); };