time-to-botec

Benchmark sampling in different programming languages
Log | Files | Refs | README

_getHolder.js (280B)


      1 /**
      2  * Gets the argument placeholder value for `func`.
      3  *
      4  * @private
      5  * @param {Function} func The function to inspect.
      6  * @returns {*} Returns the placeholder value.
      7  */
      8 function getHolder(func) {
      9   var object = func;
     10   return object.placeholder;
     11 }
     12 
     13 module.exports = getHolder;