/opt/canhelp/node_modules/hono/dist/jsx
NameSizeModeActions
dom/-0755rm
hooks/-0755rm
intrinsic-element/-0755rm
base.js94460644editdlrm
children.js5350644editdlrm
components.js57570644editdlrm
constants.js4580644editdlrm
context.js11320644editdlrm
index.js19420644editdlrm
intrinsic-elements.js00644editdlrm
jsx-dev-runtime.js4440644editdlrm
jsx-runtime.js12720644editdlrm
streaming.js48700644editdlrm
types.js00644editdlrm
utils.js8970644editdlrm
Edit: /opt/canhelp/node_modules/hono/dist/jsx/children.js (535B)
// src/jsx/children.ts var toArray = (children) => Array.isArray(children) ? children : [children]; var Children = { map: (children, fn) => toArray(children).map(fn), forEach: (children, fn) => { toArray(children).forEach(fn); }, count: (children) => toArray(children).length, only: (_children) => { const children = toArray(_children); if (children.length !== 1) { throw new Error("Children.only() expects only one child"); } return children[0]; }, toArray }; export { Children, toArray };