lib/config/Matryoshka/index.js
function getRawRecursive(matryoshka) {
	if (matryoshka.type !== 'object') {
		return matryoshka.value;
	}

	const returnObj = {};

	for (const key of Object.keys(matryoshka.value)) {
		returnObj[key] = getRawRecursive(matryoshka.value[key]);
	}

	return returnObj;
}
function getRawRecursive(matryoshka) {
	if (matryoshka.type !== 'object') {
		return matryoshka.value;
	}

	const returnObj = {};

	for (const key of Object.keys(matryoshka.value)) {
		returnObj[key] = getRawRecursive(matryoshka.value[key]);
	}

	return returnObj;
}
function getRawRecursive ( matryoshka ) { if ( matryoshka . type !== 'object' ) { return matryoshka . value ; } const returnObj = { } ; for ( const key of Object . keys ( matryoshka . value ) ) { returnObj [ key ] = getRawRecursive ( matryoshka . value [ key ] ) ; } return returnObj ; }
Recursively unpeel a matryoshka to recover the raw data.

@param  {Matryoshka} matryoshka The matryoshka to unwrap.
@return {*}                     The raw representation of the data contained in the matryoshka.
@private
Recursively unpeel a matryoshka to recover the raw data .