is-implemented.js 213 B

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