Sha256: a19afb2bce50e8cdda0304df029d3b7085014b3189c08cd11867522a0715069d

Contents?: true

Size: 672 Bytes

Versions: 273

Compression:

Stored size: 672 Bytes

Contents

/** Error message constants. */
var FUNC_ERROR_TEXT = 'Expected a function';

/**
 * The base implementation of `_.delay` and `_.defer` which accepts `args`
 * to provide to `func`.
 *
 * @private
 * @param {Function} func The function to delay.
 * @param {number} wait The number of milliseconds to delay invocation.
 * @param {Array} args The arguments to provide to `func`.
 * @returns {number|Object} Returns the timer id or timeout object.
 */
function baseDelay(func, wait, args) {
  if (typeof func != 'function') {
    throw new TypeError(FUNC_ERROR_TEXT);
  }
  return setTimeout(function() { func.apply(undefined, args); }, wait);
}

module.exports = baseDelay;

Version data entries

273 entries across 271 versions & 29 rubygems

Version Path
disco_app-0.18.2 test/dummy/node_modules/lodash/_baseDelay.js
sumomo-0.8.15 data/sumomo/api_modules/node_modules/lodash/_baseDelay.js
trusty-cms-5.0.7 node_modules/lodash/_baseDelay.js
appmap-0.72.2 ./node_modules/lodash/_baseDelay.js
trusty-cms-5.0.6 node_modules/lodash/_baseDelay.js
appmap-0.72.1 ./node_modules/lodash/_baseDelay.js
appmap-0.72.0 ./node_modules/lodash/_baseDelay.js
trusty-cms-5.0.5 node_modules/lodash/_baseDelay.js
trusty-cms-5.0.4 node_modules/lodash/_baseDelay.js
appmap-0.71.0 ./node_modules/lodash/_baseDelay.js
disco_app-0.16.1 test/dummy/node_modules/lodash/_baseDelay.js
appmap-0.70.2 ./node_modules/lodash/_baseDelay.js
sumomo-0.8.14 data/sumomo/api_modules/node_modules/lodash/_baseDelay.js
appmap-0.70.1 ./node_modules/lodash/_baseDelay.js
appmap-0.70.0 ./node_modules/lodash/_baseDelay.js
appmap-0.69.0 ./node_modules/lodash/_baseDelay.js
sumomo-0.8.13 data/sumomo/api_modules/node_modules/lodash/_baseDelay.js
appmap-0.68.2 ./node_modules/lodash/_baseDelay.js
appmap-0.68.1 ./node_modules/lodash/_baseDelay.js
disco_app-0.15.2 test/dummy/node_modules/lodash/_baseDelay.js