time-to-botec

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

_stackClear.js (254B)


      1 var ListCache = require('./_ListCache');
      2 
      3 /**
      4  * Removes all key-value entries from the stack.
      5  *
      6  * @private
      7  * @name clear
      8  * @memberOf Stack
      9  */
     10 function stackClear() {
     11   this.__data__ = new ListCache;
     12   this.size = 0;
     13 }
     14 
     15 module.exports = stackClear;