• Projects
  • Skillset
  • Resources
  • Posts
  • About
  • Projects
  • Skillset
  • Resources
  • Posts
  • About

padStart

  • Notion Formulas
  • Introduction
  • The Editor
  • Data
    • Data Types
      • String
      • Number
      • Boolean
      • Date
      • List
      • Person
      • Page
    • Properties
      • Title
      • Text
      • Number
      • Select
      • Multi-select
      • Status
      • Date
      • Person
      • Files & Media
      • Checkbox
      • URL
      • Email
      • Phone
      • Formula
      • Relation
      • Rollup
      • Created Time
      • Created By
      • Last Edited Time
      • Last Edited By
      • ID
  • Elements
    • Functions
      • if
      • ifs
      • and
      • or
      • not
      • empty
      • length
      • substring
      • contains
      • test
      • match
      • replace
      • replaceAll
      • lower
      • upper
      • repeat
      • padStart
      • padEnd
      • link
      • style
      • unstyle
      • format
      • add
      • subtract
      • multiply
      • mod
      • pow
      • divide
      • min
      • max
      • sum
      • median
      • mean
      • abs
      • round
      • ceil
      • floor
      • sqrt
      • cbrt
      • exp
      • ln
      • log10
      • log2
      • sign
      • pi
      • e
      • toNumber
      • now
      • today
      • minute
      • hour
      • day
      • date
      • week
      • month
      • year
      • dateAdd
      • dateSubtract
      • dateBetween
      • dateRange
      • dateStart
      • dateEnd
      • timestamp
      • fromTimestamp
      • formatDate
      • parseDate
      • name
      • email
      • at
      • first
      • last
      • slice
      • concat
      • sort
      • reverse
      • join
      • split
      • unique
      • includes
      • find
      • findIndex
      • filter
      • some
      • every
      • map
      • flat
      • id
      • equal
      • unequal
      • let
      • lets
    • Operators
      • +
      • -
      • *
      • %
      • ^
      • /
      • ==
      • !=
      • >
      • >=
      • <
      • <=
      • && · and
      • || · or
      • ! · not
      • ? :
    • Booleans
      • true
      • false
    • Variables
      • current
      • index
  • More
    • Examples
      • Outline Numbering
    • Automations
    • Errors
Functions
/
padStart
Returns the text padded with the provided padding string at the start until the target length is reached.
Accepts
All Data Types
Returns
String
Syntax
padStart(text, targetLength, padString) text.padStart(targetLength, padString)

padStart("A", 3, ".")
=
...A "...A"

Additional Links

  • padStart Companion Page notion.cool
Functions
←
repeat
→
Functions
padEnd
© Ben Smith
  • Email
  • Bluesky
Mastodon