For the complete documentation index, see llms.txt. This page is also available as Markdown.

string.delete

⚠️ Not a string method. .delete() works only on arrays and objects. See arrays/.delete.md and objects/.delete.md.

Description

Delete is a method that deletes an index from a string

Parameters

Delete takes the index to delete as a parameter.

Usage On Strings

str = "helllo world"
// setup the string

log str.delete(4)
// returns the string but with the 4th character deleted: "hello world"

Last updated