function resolveArrayNotation(condition, key) {
	if (typeof condition !== 'object') {
		return condition;
	}

	const acc = {};
	Object.keys(condition).forEach(attribute => {
		const value = condition[attribute];
		if (Array.isArray(value)) {
			acc[attribute] = value.map(it => resolveConditionVar(it, key));
		} else {
			acc[attribute] = resolveConditionVar(value, key);
		}
		return acc;
	});
	return acc;
}
/**
 * Ensure generic indices ([]) are populated from the key.
 * It is a recursive implementation to support any kind of condition.
 */
Ensure generic indices ([]) are populated from the key.
It is a recursive implementation to support any kind of condition.
Ensure generic indices ( [] ) are populated from the key . It is a recursive implementation to support any kind of condition .
function resolveArrayNotation(condition, key) {
	if (typeof condition !== 'object') {
		return condition;
	}
	const acc = {};
	Object.keys(condition).forEach(attribute => {
		const value = condition[attribute];
		if (Array.isArray(value)) {
			acc[attribute] = value.map(it => resolveConditionVar(it, key));
		} else {
			acc[attribute] = resolveConditionVar(value, key);
		}
		return acc;
	});
	return acc;
}
function resolveArrayNotation ( condition , key ) { if ( typeof condition !== 'object' ) { return condition ; } const acc = { } ; Object . keys ( condition ) . forEach ( attribute => { const value = condition [ attribute ] ; if ( Array . isArray ( value ) ) { acc [ attribute ] = value . map ( it => resolveConditionVar ( it , key ) ) ; } else { acc [ attribute ] = resolveConditionVar ( value , key ) ; } return acc ; } ) ; return acc ; }
Ensure generic indices ([]) are populated from the key.
Ensure generic indices ( [] ) are populated from the key .