string.delete
Last updated
⚠️ Not a string method.
.delete()works only on arrays and objects. See arrays/.delete.md and objects/.delete.md.
Delete is a method that deletes an index from a string
Delete takes the index to delete as a parameter.
str = "helllo world"
// setup the string
log str.delete(4)
// returns the string but with the 4th character deleted: "hello world"Last updated