Home

tailwind-ctp-intellisense @b16f22540a2db2565b15bc22c2f802eddeaae038 - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tailwind-ctp-intellisense / packages / tailwindcss-language-service / src / util / removeMeta.ts
- raw
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
import isObject from './isObject'

export default function removeMeta(obj: any): any {
  let result = {}
  for (let key in obj) {
    if (key.substr(0, 2) === '__') continue
    if (isObject(obj[key])) {
      result[key] = removeMeta(obj[key])
    } else {
      result[key] = obj[key]
    }
  }
  return result
}