(key: string)
| 1 | const htmlProps = ['htmlSize', 'htmlTranslate', 'htmlWidth', 'htmlHeight'] |
| 2 | |
| 3 | function convert(key: string) { |
| 4 | return htmlProps.includes(key) ? key.replace('html', '').toLowerCase() : key |
| 5 | } |
| 6 | |
| 7 | export function normalizeHTMLProps(props: Record<string, any>) { |
| 8 | return Object.fromEntries(Object.entries(props).map(([key, value]) => [convert(key), value])) |
no outgoing calls
no test coverage detected