repeat

Learn how to use the repeat function in Notion formulas.

New in Formulas 2.0

The repeat() function will repeat a string the specified number of times.

repeat(string, number)

string.repeat(number)
Code language: JavaScript (javascript)

If you specify a non-string data type as the first argument, it will be converted to a string before being repeated.

123.repeat(3) /* Output: "123123123" */

false.repeat(3) /* Output: "falsefalsefalse" */Code language: CSS (css)
"This is " + "very ".repeat(3).split(" ").join(", ") + " good."
Code language: JavaScript (javascript)
About the Author

My name is Thomas Frank, and I'm a Notion-certified writer, YouTuber, and template creator. I've been using Notion since 2018 to organize my personal life and to run my business and YouTube channel. In addition to this formula reference, I've created a free Notion course for beginners and several productivity-focused Notion templates. If you'd like to connect, follow me on Twitter.

🤔 Have an UB Question?

Fill out the form below and I’ll answer as soon as I can! ~Thomas

🤔 Have a Question?

Fill out the form below and I’ll answer as soon as I can! ~Thomas