UNPKG

@alessiofrittoli/react-api

Version:
2 lines (1 loc) 409 B
import{isValidElement as r}from"react";import{Fragment as d}from"react/jsx-runtime";import{jsx as c}from"react/jsx-runtime";var p=e=>typeof e=="function",i=e=>typeof e=="string"||typeof e=="number"||typeof e=="boolean"||e===null||e===void 0||r(e)||Array.isArray(e)&&e.every(i),a=(e,...n)=>Array.isArray(e)?e.map((t,o)=>c(d,{children:a(t,...n)},o)):typeof e=="function"?e(...n):e;export{p as a,i as b,a as c};