replaceData

fun replaceData(offset: Int, count: Int, data: String)(source)

MDN Reference