# Methods

- [Strings](https://osl.mistium.com/methods/strings.md)
- [.len](https://osl.mistium.com/methods/strings/length.md)
- [.padStart(val,num)](https://osl.mistium.com/methods/strings/.padstart.md)
- [.padEnd(val,num)](https://osl.mistium.com/methods/strings/.padend.md)
- [.append(val)](https://osl.mistium.com/methods/strings/.append.md)
- [.prepend(val)](https://osl.mistium.com/methods/strings/.prepend.md)
- [.ask()](https://osl.mistium.com/methods/strings/.ask.md)
- [.confirm()](https://osl.mistium.com/methods/strings/.confirm.md)
- [.btoa()](https://osl.mistium.com/methods/strings/.btoa.md)
- [.atob()](https://osl.mistium.com/methods/strings/.atob.md)
- [.left(num)](https://osl.mistium.com/methods/strings/.left.md)
- [.right(num)](https://osl.mistium.com/methods/strings/.right.md)
- [.jsonParse()](https://osl.mistium.com/methods/strings/.jsonparse.md)
- [.getProto()](https://osl.mistium.com/methods/strings/.getproto.md)
- [.startsWith(val)](https://osl.mistium.com/methods/strings/.startswith-val.md)
- [.endsWith(val)](https://osl.mistium.com/methods/strings/.endswith-val.md)
- [.wrapText(characters)](https://osl.mistium.com/methods/strings/.wraptext-characters.md)
- [.trimText(characters)](https://osl.mistium.com/methods/strings/.trimtext-characters.md)
- [.split(characters)](https://osl.mistium.com/methods/strings/.split.md)
- [.count(val)](https://osl.mistium.com/methods/strings/.count.md)
- [.trim(start, end)](https://osl.mistium.com/methods/strings/.trim.md)
- [.replace(old,new)](https://osl.mistium.com/methods/strings/.replace.md)
- [.delete(location)](https://osl.mistium.com/methods/strings/.delete.md)
- [.concat(val)](https://osl.mistium.com/methods/strings/.concat.md)
- [.reverse()](https://osl.mistium.com/methods/strings/.reverse.md)
- [.replaceFirst(old,new)](https://osl.mistium.com/methods/strings/.replacefirst.md)
- [.contains(val)](https://osl.mistium.com/methods/strings/.contains.md)
- [.oslTokenise()](https://osl.mistium.com/methods/strings/.osltokenise.md)
- [.strip()](https://osl.mistium.com/methods/strings/.strip.md)
- [.index(val)](https://osl.mistium.com/methods/strings/.index.md)
- [.toArr()](https://osl.mistium.com/methods/strings/.toarr.md)
- [.toOrdArray()](https://osl.mistium.com/methods/strings/.toordarray.md)
- [.match(pattern)](https://osl.mistium.com/methods/strings/.match.md)
- [Encoding](https://osl.mistium.com/methods/strings/encoding.md)
- [.encodeBin()](https://osl.mistium.com/methods/strings/encoding/.encodebin.md)
- [.decodeBin()](https://osl.mistium.com/methods/strings/encoding/.decodebin.md)
- [.encodeHex()](https://osl.mistium.com/methods/strings/encoding/.encodehex.md)
- [.decodeHex()](https://osl.mistium.com/methods/strings/encoding/.decodehex.md)
- [.encodeUTF16()](https://osl.mistium.com/methods/strings/encoding/.encodeutf16.md)
- [.decodeUTF16()](https://osl.mistium.com/methods/strings/encoding/.decodeutf16.md)
- [.encrypt(password)](https://osl.mistium.com/methods/strings/encoding/.encrypt.md)
- [.decrypt(password)](https://osl.mistium.com/methods/strings/encoding/.decrypt.md)
- [.ord()](https://osl.mistium.com/methods/strings/encoding/.ord.md)
- [.chr()](https://osl.mistium.com/methods/strings/encoding/.chr.md)
- [Hashing](https://osl.mistium.com/methods/strings/hashing.md)
- [.hashMD5()](https://osl.mistium.com/methods/strings/hashing/.hashmd5.md)
- [.hashSHA1()](https://osl.mistium.com/methods/strings/hashing/.hashsha1.md)
- [.hashSHA256()](https://osl.mistium.com/methods/strings/hashing/.hashsha256.md)
- [.hashSHA512()](https://osl.mistium.com/methods/strings/hashing/.hashsha512.md)
- [Case](https://osl.mistium.com/methods/strings/case.md)
- [.toLower()](https://osl.mistium.com/methods/strings/case/.tolower.md)
- [.toUpper()](https://osl.mistium.com/methods/strings/case/.toupper.md)
- [.toMixed()](https://osl.mistium.com/methods/strings/case/.tomixed.md)
- [.toTitle()](https://osl.mistium.com/methods/strings/case/.totitle.md)
- [Numbers](https://osl.mistium.com/methods/numbers.md)
- [.len](https://osl.mistium.com/methods/numbers/length.md)
- [.newArray()](https://osl.mistium.com/methods/numbers/.newarray.md)
- [.padStart(val,num)](https://osl.mistium.com/methods/numbers/.padstart.md)
- [.padEnd(val,num)](https://osl.mistium.com/methods/numbers/.padend.md)
- [.append(val)](https://osl.mistium.com/methods/numbers/.append.md)
- [.prepend(val)](https://osl.mistium.com/methods/numbers/.prepend.md)
- [.newString()](https://osl.mistium.com/methods/numbers/.newstring.md)
- [.getProto()](https://osl.mistium.com/methods/numbers/.getproto.md)
- [.abs()](https://osl.mistium.com/methods/numbers/.abs.md)
- [.invabs()](https://osl.mistium.com/methods/numbers/.invabs.md)
- [.log()](https://osl.mistium.com/methods/numbers/.log.md)
- [.ln()](https://osl.mistium.com/methods/numbers/.ln.md)
- [.isPrime()](https://osl.mistium.com/methods/numbers/.isprime.md)
- [.sqrt()](https://osl.mistium.com/methods/numbers/.sqrt.md)
- [.sign()](https://osl.mistium.com/methods/numbers/.sign.md)
- [.chance()](https://osl.mistium.com/methods/numbers/.chance.md)
- [.clamp(low,high)](https://osl.mistium.com/methods/numbers/.clamp.md)
- [.toBase(base)](https://osl.mistium.com/methods/numbers/.tobase.md)
- [Rounding](https://osl.mistium.com/methods/numbers/rounding.md)
- [.round(places)](https://osl.mistium.com/methods/numbers/rounding/.round.md)
- [.ceiling()](https://osl.mistium.com/methods/numbers/rounding/.ceiling.md)
- [.floor()](https://osl.mistium.com/methods/numbers/rounding/.floor.md)
- [Trigonometry](https://osl.mistium.com/methods/numbers/trigonometry.md)
- [.sin](https://osl.mistium.com/methods/numbers/trigonometry/.sin.md)
- [.cos](https://osl.mistium.com/methods/numbers/trigonometry/.cos.md)
- [.tan](https://osl.mistium.com/methods/numbers/trigonometry/.tan.md)
- [.asin()](https://osl.mistium.com/methods/numbers/trigonometry/.asin.md)
- [.acos()](https://osl.mistium.com/methods/numbers/trigonometry/.acos.md)
- [.atan()](https://osl.mistium.com/methods/numbers/trigonometry/.atan.md)
- [.radSin()](https://osl.mistium.com/methods/numbers/trigonometry/.radsin.md)
- [.radCos()](https://osl.mistium.com/methods/numbers/trigonometry/.radcos.md)
- [Arrays](https://osl.mistium.com/methods/arrays.md)
- [.len](https://osl.mistium.com/methods/arrays/length.md)
- [.clone()](https://osl.mistium.com/methods/arrays/.clone.md)
- [.getProto()](https://osl.mistium.com/methods/arrays/.getproto.md)
- [.left(num)](https://osl.mistium.com/methods/arrays/.left.md)
- [.right(num)](https://osl.mistium.com/methods/arrays/.right.md)
- [.toStr()](https://osl.mistium.com/methods/arrays/.tostr.md)
- [.append(val)](https://osl.mistium.com/methods/arrays/.append.md)
- [.prepend(val)](https://osl.mistium.com/methods/arrays/.prepend.md)
- [.insert(location,val)](https://osl.mistium.com/methods/arrays/.insert.md)
- [.delete(location)](https://osl.mistium.com/methods/arrays/.delete.md)
- [.concat(val)](https://osl.mistium.com/methods/arrays/.concat-val.md)
- [.trim(idx1,idx2)](https://osl.mistium.com/methods/arrays/.trim.md)
- [.contains(val)](https://osl.mistium.com/methods/arrays/.contains.md)
- [.index(val)](https://osl.mistium.com/methods/arrays/.index.md)
- [.map(callback)](https://osl.mistium.com/methods/arrays/.map.md)
- [.filter(callback)](https://osl.mistium.com/methods/arrays/.filter.md)
- [.some(callback)](https://osl.mistium.com/methods/arrays/.some.md)
- [.every(callback)](https://osl.mistium.com/methods/arrays/.every.md)
- [.sort()](https://osl.mistium.com/methods/arrays/.sort.md)
- [.reverse()](https://osl.mistium.com/methods/arrays/.reverse.md)
- [.sortBy(key)](https://osl.mistium.com/methods/arrays/.sortby.md)
- [.swap(idx1,idx2)](https://osl.mistium.com/methods/arrays/.swap.md)
- [.fill(value)](https://osl.mistium.com/methods/arrays/.fill.md)
- [.join(characters)](https://osl.mistium.com/methods/arrays/.join.md)
- [.randomOf()](https://osl.mistium.com/methods/arrays/.randomof.md)
- [.pop()](https://osl.mistium.com/methods/arrays/.pop.md)
- [.shift()](https://osl.mistium.com/methods/arrays/.shift.md)
- [.getKeys(key)](https://osl.mistium.com/methods/arrays/.getkeys.md)
- [Objects](https://osl.mistium.com/methods/objects.md)
- [.len](https://osl.mistium.com/methods/objects/length.md)
- [.clone()](https://osl.mistium.com/methods/objects/.clone.md)
- [.getProto()](https://osl.mistium.com/methods/objects/.getproto.md)
- [.JsonParse()](https://osl.mistium.com/methods/objects/.jsonparse.md)
- [.getKeys()](https://osl.mistium.com/methods/objects/.getkeys.md)
- [.getValues()](https://osl.mistium.com/methods/objects/.getvalues.md)
- [.getEntries()](https://osl.mistium.com/methods/objects/.getentries.md)
- [.toStr()](https://osl.mistium.com/methods/objects/.tostr.md)
- [.insert(location,val)](https://osl.mistium.com/methods/objects/.insert.md)
- [Functions](https://osl.mistium.com/methods/functions.md)
- [.bind(context)](https://osl.mistium.com/methods/functions/bind.md)
- [Keyboard](https://osl.mistium.com/methods/keyboard.md)
- [.isKeyDown()](https://osl.mistium.com/methods/keyboard/.iskeydown.md)
- [.onKeyDown()](https://osl.mistium.com/methods/keyboard/.onkeydown.md)
- [Iframes](https://osl.mistium.com/methods/iframes.md)
- [.iframeNew()](https://osl.mistium.com/methods/iframes/.iframenew.md)
- [.iframeGoto()](https://osl.mistium.com/methods/iframes/.iframegoto.md)
- [.iframeResize()](https://osl.mistium.com/methods/iframes/.iframeresize.md)
- [.iframeRedirect()](https://osl.mistium.com/methods/iframes/.iframeredirect.md)
- [.iframeShow()](https://osl.mistium.com/methods/iframes/.iframeshow.md)
- [.iframeHide()](https://osl.mistium.com/methods/iframes/.iframehide.md)
- [.iframeClose()](https://osl.mistium.com/methods/iframes/.iframeclose.md)
- [JSON](https://osl.mistium.com/methods/json.md)
- [.JsonStringify()](https://osl.mistium.com/methods/json/.jsonstringify.md)
- [.JsonParse()](https://osl.mistium.com/methods/json/.jsonparse.md)
- [.JsonFormat()](https://osl.mistium.com/methods/json/.jsonformat.md)
- [.JsonClean()](https://osl.mistium.com/methods/json/.jsonclean.md)
- [Types](https://osl.mistium.com/methods/types.md)
- [.getType()](https://osl.mistium.com/methods/types/.gettype.md)
- [.isType(type)](https://osl.mistium.com/methods/types/.istype.md)
- [.toNum()](https://osl.mistium.com/methods/types/.tonum.md)
- [.toBool()](https://osl.mistium.com/methods/types/.tobool.md)
- [.toStr()](https://osl.mistium.com/methods/types/.tostr.md)
- [Networking](https://osl.mistium.com/methods/networking.md)
- [.httpGet()](https://osl.mistium.com/methods/networking/.httpget.md)
- [.http(method,data,headers)](https://osl.mistium.com/methods/networking/.http.md)
- [.getAsync()](https://osl.mistium.com/methods/networking/.getasync.md)
- [.roturConnect()](https://osl.mistium.com/methods/networking/.roturconnect.md)
- [.roturSend(msg,target)](https://osl.mistium.com/methods/networking/.rotursend-msg-target.md)
- [Websockets](https://osl.mistium.com/methods/networking/websockets.md)
- [.newWebsocket()](https://osl.mistium.com/methods/networking/websockets/.newwebsocket.md)
- [.wsSend(msg)](https://osl.mistium.com/methods/networking/websockets/.wssend.md)
- [.wsClose()](https://osl.mistium.com/methods/networking/websockets/.wsclose.md)
- [.wsOpen()](https://osl.mistium.com/methods/networking/websockets/.wsopen.md)
- [.wsHasnew()](https://osl.mistium.com/methods/networking/websockets/.wshasnew.md)
- [.wsGetnext()](https://osl.mistium.com/methods/networking/websockets/.wsgetnext.md)
- [.wsGetcount()](https://osl.mistium.com/methods/networking/websockets/.wsgetcount.md)
- [Timestamp](https://osl.mistium.com/methods/timestamp.md)
- [.timestamp("convert-date")](https://osl.mistium.com/methods/timestamp/timestamp-convert-date.md)
- [.timestamp("component")](https://osl.mistium.com/methods/timestamp/timestamp-component.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://osl.mistium.com/methods.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
