menu
lonate package
documentation
lonate
StringMunipulator extension
StringMunipulator
brightness_4
StringMunipulator
extension
Null safety
on
String
Properties
getUniqueId
→
String
Generates a unique ID. If prefix is given, the ID is appended to it. Example: "hello" -> "hello" -> "hello"
read-only
toDeburr
→
String
Deburrs string by converting Latin-1 Supplement and Latin Extended-A letters to basic Latin letters and removing combining diacritical marks.
read-only
Methods
toRepeat
(
int
n
)
→
String
Repeats the given string n times. Example: "hello" -> "hellohello"
toReplace
(
RegExp
pattern
,
String
replacement
)
→
String
Replaces matches for pattern in string with replacement. Example: "hello" -> "hello" -> "hello"
toTruncate
(
int
length
,
[
String
?
omission
]
)
→
String
Truncates string if it's longer than the given maximum string length. The last characters of the truncated string are replaced with the omission string which defaults to "...". Example: "hello" -> "hello" -> "hello"
lonate package
documentation
lonate
StringMunipulator extension
lonate library
Extensions
ArrayCliz
ArrayDifference
ArrayDrop
ArrayFlatten
ArrayFrom
ArrayIndexing
ArrayPull
ArraySorted
ArrayUnion
ArrayZip
CollectiveList
CollectiveMap
CollectiveNum
RichFunction
StringCase
StringEscape
StringMunipulator
StringPad
Properties
MAX_ARRAY_LENGTH
timeouts
Functions
add
arrayMax
arrayMean
arrayMin
arraySum
assign
baseFill
camelCase
capitalize
ceil
chunk
clamp
compact
debounce
deburr
delay
difference
differenceBy
divide
drop
dropRight
dropWhile
escape
escapeRegExp
fill
findIndex
findKey
flatten
flattenDeep
flattenDepth
floor
fromPairs
get
hasInObject
hasObject
initial
inRange
intersection
isEqual
isGreater
isGreaterEqual
isLength
isLess
kebabCase
lastIndexOf
lowerFirst
mapsEqual
median
memoize
mode
multipleComputation
multiply
pad
padEnd
padStart
pull
pullAt
random
repeat
replace
round
snakeCase
sortedIndex
sortedIndexOf
sortedUniq
sortedUniqBy
standardDeviation
startCase
startsWith
subtract
tail
throttle
truncate
union
unionBy
uniq
uniqueId
upperFirst
values
variance
withOut
zip
Properties
getUniqueId
toDeburr
Methods
toRepeat
toReplace
toTruncate