jstrlen

abstract fun jstrlen(jsString: JsString): Int(source)

Given a JS string, this function returns its UTF-8 length in bytes. Returns null if its argument is not a string. This is a relatively expensive calculation and should be avoided when not necessary.