Kind: Constant
Source: src/jsx/children.ts
Part of: Jsx
Definition
ts{
map: (children: Child[], fn: (child: Child, index: number) => Child): Child[] =>
toArray(children).map(fn),
forEach: (children: Child[], fn: (child: Child, index: number) => void): void => {
toArray(children).forEach(fn)
},
count: (children: Child[]): number => toArray(children).length,
only: (_children: Child[]): Child => {
const children = toArray(_children)
if (child…
Value
ts{
map: (children: Child[], fn: (child: Child, index: number) => Child): Child[] =>
toArray(children).map(fn),
forEach: (children: Child[], fn: (child: Child, index: number) => void): void => {
toArray(children).forEach(fn)
},
count: (children: Child[]): number => toArray(children).length,
only: (_children: Child[]): Child => {
const children = toArray(_children)
if (child…
Was this page helpful?