_endsWith.js 256 B

123456789101112
  1. "use strict";
  2. exports.__esModule = true;
  3. exports["default"] = endsWith;
  4. /**
  5. * Check if a string ends with something
  6. * @private
  7. */
  8. function endsWith(string, suffix) {
  9. return string.substr(-suffix.length) === suffix;
  10. }
  11. module.exports = exports.default;