workspace/order#
Functions#
indexBetween()#
indexBetween(
a,b):string
Defined in: workspace/order.ts:114
An index sorting strictly between a and b; null leaves that side
open, and two nulls give the first index, a0.
Parameters#
a#
string | null
b#
string | null
Returns#
string
Throws#
when either bound is not an index, a is not below
b, or no index exists below b.
indicesBetween()#
indicesBetween(
a,b,n):string[]
Defined in: workspace/order.ts:151
n ascending indices sorting strictly between a and b, null bounds
open as in indexBetween.
Parameters#
a#
string | null
b#
string | null
n#
number
Returns#
string[]
Throws#
when n is not a non-negative safe integer, or as
indexBetween throws.
isIndex()#
isIndex(
text):boolean
Defined in: workspace/order.ts:98
Whether text is a valid fractional index.
Parameters#
text#
string
Returns#
boolean