function constantize(obj){ Object.freeze(obj) Object.keys().forEach((key,i)=>{ if(typeof obj[key] === 'object'){ constantize(obj[key]) } }) }
function constantize(obj){ Object.freeze(obj) Object.keys().forEach((key,i)=>{ if(typeof obj[key] === 'object'){ constantize(obj[key]) } }) }