UNPKG

@skele/config

Version:

Skele package that provides the posibility to define a custom configuration

8 lines (7 loc) 214 B
export default function deepFreeze(obj) { Object.entries(obj).forEach(subObj => { const prop = subObj[1] if (typeof prop === 'object' && prop !== null) deepFreeze(prop) }) return Object.freeze(obj) }