Cell API
Docs
GitHub
Preparing search index...
@celljs/cli
TextUtil
closest
Function closest
closest
(
word
:
string
,
candidates
:
readonly
string
[]
,
max
?:
number
,
)
:
string
|
undefined
The candidate closest to
word
, if it is a likely typo (at most
max
edits away).
Parameters
word
:
string
candidates
:
readonly
string
[]
max
:
number
= 2
Returns
string
|
undefined
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Docs
GitHub
Cell API
Loading...
The candidate closest to
word, if it is a likely typo (at mostmaxedits away).