_.delay - My correct version

PHOTO EMBED

Wed May 26 2021 20:27:40 GMT+0000 (UTC)

Saved by @ejiwen #javascript

_.delay = function(func, wait) {
    var result;
    var params = [...arguments];
    setTimeout(function() {
      result = func.apply(this, params.slice(2));
    }, wait);
    return result;
  };
content_copyCOPY