Home

tailwind-ctp-intellisense @a082bb3fd7a6947792f8fd1545e0d11a6f6d03a6 - 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]
}