wishthis/node_modules/es5-ext/string/#/repeat/is-implemented.js
2022-01-21 09:28:41 +01:00

8 lines
156 B
JavaScript

"use strict";
var str = "foo";
module.exports = function () {
if (typeof str.repeat !== "function") return false;
return str.repeat(2) === "foofoo";
};