Sha256: 8bd5d16a508da2ebdb4b9afcc1081fe8c4f386a843e7b358f2614455f92b78d5
Contents?: true
Size: 316 Bytes
Versions: 46
Compression:
Stored size: 316 Bytes
Contents
"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); };
Version data entries
46 entries across 46 versions & 3 rubygems