artdaq_node_server
v1_00_08
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Variables
Pages
src
node_modules
xml2js
node_modules
xmlbuilder
node_modules
lodash
after.js
1
var toInteger = require(
'./toInteger'
);
2
4
var FUNC_ERROR_TEXT =
'Expected a function'
;
5
30
function
after(n, func) {
31
if
(typeof func !=
'function'
) {
32
throw
new
TypeError(FUNC_ERROR_TEXT);
33
}
34
n = toInteger(n);
35
return
function
() {
36
if
(--n < 1) {
37
return
func.apply(
this
, arguments);
38
}
39
};
40
}
41
42
module.exports = after;
Generated on Thu Jun 1 2017 12:09:35 for artdaq_node_server by
1.8.5