MCPcopy Index your code
hub / github.com/developit/htm / propertyName

Function propertyName

packages/babel-plugin-htm/index.mjs:61–66  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

59 }
60
61 function propertyName(key) {
62 if (t.isValidIdentifier(key)) {
63 return t.identifier(key);
64 }
65 return t.stringLiteral(key);
66 }
67
68 function objectProperties(obj) {
69 return Object.keys(obj).map(key => {

Callers 4

dottedIdentifierFunction · 0.85
objectPropertiesFunction · 0.85
stringValueFunction · 0.85
createVNodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…