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

slice

  • 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
/
slice
Returns the items of the list from the provided start index (inclusive) to the end index (optional and exclusive).
Accepts
List
Returns
All Data Types
Syntax
slice(list, startIndex, endIndex?) list.slice(startIndex, endIndex?)

slice([1, 2, 3], 1, 3)
=
2, 3 [2, 3]

Additional Links

  • slice Companion Page notion.cool
Functions
←
last
→
Functions
concat
© Ben Smith
  • Email
  • Bluesky
Mastodon