artdaq_node_server  v1_00_08
 All Classes Namespaces Files Variables Pages
rest.js
1 var baseRest = require('./_baseRest'),
2  toInteger = require('./toInteger');
3 
5 var FUNC_ERROR_TEXT = 'Expected a function';
6 
32 function rest(func, start) {
33  if (typeof func != 'function') {
34  throw new TypeError(FUNC_ERROR_TEXT);
35  }
36  start = start === undefined ? start : toInteger(start);
37  return baseRest(func, start);
38 }
39 
40 module.exports = rest;