is-implemented.js 204 B

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