Home

tailwind-ctp-intellisense @906d3cfb4ee92af42cd51e6744b8beeb9b16c54b - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tailwind-ctp-intellisense / src / lsp / util / closest.ts
- raw
1
2
3
4
5
import sift from 'sift-string'

export function closest(input: string, options: string[]): string | undefined {
  return options.concat([]).sort((a, b) => sift(input, a) - sift(input, b))[0]
}