MCPcopy Create free account
hub / github.com/react-hook-form/react-hook-form / insert

Function insert

scripts/README/Insert.js:11–15  ·  view source on GitHub ↗
(raw)

Source from the content-addressed store, hash-verified

9const comment_unknown = (type) => `<!-- Unknown Insertion Type : '${type}' -->`;
10
11function insert(raw) {
12 const type = toType(raw);
13
14 return generators[type]?.() ?? comment_unknown(type);
15}
16
17function toType(string) {
18 return string.trim().substring(1);

Callers

nothing calls this directly

Calls 2

toTypeFunction · 0.85
comment_unknownFunction · 0.85

Tested by

no test coverage detected