Open xgqfrms opened 4 years ago
https://www.sitepoint.com/5-typical-javascript-interview-exercises/
String.prototype.repeatify = function (times = 1) { console.log(this) // String {"abx"} return [...``.padStart(times, ` `)].map((item, i) => item = this).join(``); }; `abx`.repeatify(3); // "abxabxabx" ``
https://www.cnblogs.com/xgqfrms/p/8982974.html
https://www.cnblogs.com/xgqfrms/p/13034475.html
js repeatify
https://www.sitepoint.com/5-typical-javascript-interview-exercises/