is-implemented.js 169 B

12345678
  1. "use strict";
  2. var re = /foo/;
  3. module.exports = function () {
  4. if (typeof re.replace !== "function") return false;
  5. return re.replace("foobar", "mar") === "marbar";
  6. };