is-implemented.js 205 B

12345678
  1. "use strict";
  2. var str = "razdwatrzy";
  3. module.exports = function () {
  4. if (typeof str.endsWith !== "function") return false;
  5. return (str.endsWith("trzy") === true) && (str.endsWith("raz") === false);
  6. };