Home

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

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