Home

tailwind-ctp-intellisense @d3444006886fd90a6077b2ee2be25a36a56f11c8 - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tailwind-ctp-intellisense / packages / tailwindcss-language-service / src / 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]
}