kotlin-stdlib / kotlin.js / RegExp / toString toString JS 1.1 fun toString(): String(source) Returns a string representation of the object.