• Projects
  • Resources
  • Journal
  • Skillset
  • About
  • Projects
  • Resources
  • Journal
  • Skillset
  • About

splice

  • 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
      • trim
      • repeat
      • padStart
      • padEnd
      • link
      • style
      • unstyle
      • format
      • formatNumber
      • 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
      • splice
      • unique
      • includes
      • find
      • findIndex
      • filter
      • some
      • every
      • map
      • flat
      • id
      • equal
      • unequal
      • let
      • lets
      • count
    • Operators
      • +
      • -
      • *
      • %
      • ^
      • /
      • ==
      • !=
      • >
      • >=
      • <
      • <=
      • && · and
      • || · or
      • ! · not
      • ? :
    • Booleans
      • true
      • false
    • Variables
      • current
      • index
  • More
    • Examples
      • Outline Numbering
    • Automations
    • Errors
Functions
/
splice
Removes a specified number of elements from a list at the startIndex and optionally inserts new elements at that position. If deleteCount is not provided, it defaults to 0.
Accepts
List
Returns
List
Syntax
splice(list, startIndex, deleteCount?, ...) list.splice(startIndex, deleteCount?, ...)

splice([1, 2, 3], 1, 1)
=
1, 3 [1, 3]
Functions
←
split
→
Functions
unique
© Ben Smith
  • Email
  • Bluesky
Mastodon