getName.js 267 B

1234567891011121314
  1. /*
  2. MIT License http://www.opensource.org/licenses/mit-license.php
  3. Author Tobias Koppers @sokra
  4. */
  5. "use strict";
  6. const getName = (sourceMap, index) => {
  7. if (index < 0) return null;
  8. const { names } = sourceMap;
  9. return names[index];
  10. };
  11. module.exports = getName;