Skip to content

globals/String.prototype

Mocks of the helper methods Obsidian adds to String.prototype, each called with the string as this.

Function Description
contains Checks whether the string contains a substring, like String.prototype.includes.
format Fills numbered placeholders such as \{0\} with the matching argument.