Skip to content

Functions String

Jason Barr edited this page Sep 22, 2021 · 2 revisions

A functional, curried interface to the JavaScript String type, plus other useful functions.

The Functions

  • charAt
  • charCodeAt
  • codePointAt
  • endsWith
  • fromCharCode
  • fromCodePoint
  • localeCompare
  • match
  • matchAll
  • normalize
  • padEnd
  • padStart
  • repeat
  • replace
  • replaceAll
  • search
  • split
  • startsWith - curried version
  • startsWithFromStart - always starts from the beginning of the string
  • strConcat
  • strFrom
  • strIncludes - curried version
  • strIncludesFromStart - always starts from beginning of the string
  • strIndexOf
  • strIndexOfFromStart
  • string
  • strLastIndexOf
  • strLastIndexOfFromEnd
  • strLen
  • strSlice - Python-style slicing
  • strSliceC - curried version, all args mandatory
  • strTo
  • substring
  • toLocaleLowerCase
  • toLocaleUpperCase
  • toLowerCase
  • toUpperCase
  • trim
  • trimEnd
  • trimStart
Clone this wiki locally