Searched refs:theClass (Results 1 – 1 of 1) sorted by relevance
44 function toPlainObject(theClass) { argument45 if (isPrimitive(theClass)) {46 return theClass;47 } else if (Array.isArray(theClass)) {48 return theClass.map(item => toPlainObject(item));50 const keys = Object.getOwnPropertyNames(Object.assign({}, theClass));52 classAsObj[key] = toPlainObject(theClass[key]);