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

number.prepend

⚠️ Not a number method. .prepend() works only on strings. See strings/.prepend.md.

Description

Casts the current number to a string, prepends val, and returns the combined string.

Parameters

  • val - value to place in front (converted to string).

Usage

log 99.prepend("ID-") // "ID-99"

Last updated