frontend/.pnpm-store/v3/files/4c/af6e31c7807cf4041487f8abdc1da581f1ce3db2a8898b88920e40bc4f4823406e22314833d74bbb06626bd51bafdde6ddd28e56ab1c705a444d60aecc3f22

10 lines
314 B
Plaintext

"use strict";
var indexOf = String.prototype.indexOf, slice = String.prototype.slice;
module.exports = function (search, replace) {
var index = indexOf.call(this, search);
if (index === -1) return String(this);
return slice.call(this, 0, index) + replace + slice.call(this, index + String(search).length);
};