UNPKG

yeonpm-react

Version:

A library that collects frequently used components and custom hooks in react projects

3 lines (2 loc) 589 B
import{RULESET as r,KEYFRAMES as e,COMMENT as n,DECLARATION as t,IMPORT as u,LAYER as a}from"./Enum.js";import{sizeof as c,strlen as i}from"./Utility.js";function o(r,e){for(var n="",t=c(r),u=0;u<t;u++)n+=e(r[u],u,r,e)||"";return n}function s(c,s,l,f){switch(c.type){case a:if(c.children.length)break;case u:case t:return c.return=c.return||c.value;case n:return"";case e:return c.return=c.value+"{"+o(c.children,f)+"}";case r:c.value=c.props.join(",")}return i(l=o(c.children,f))?c.return=c.value+"{"+l+"}":""}export{o as serialize,s as stringify}; //# sourceMappingURL=Serializer.js.map