function replaceArrayNotationByIndexes(path, key) {
	if (!path || !path.includes('[]')) {
		return path;
	}
	return path
		.split(/\.|\[/)
		.map((part, index) => {
			if (part === ']') {
				return key[index];
			}
			return part;
		})
		.join('.');
}
/**
 * If in the path [] appears it will be populated
 * with current key indices value.
 */
If in the path [] appears it will be populated
with current key indices value.
If in the path [] appears it will be populated with current key indices value .
function replaceArrayNotationByIndexes(path, key) {
	if (!path || !path.includes('[]')) {
		return path;
	}
	return path
		.split(/\.|\[/)
		.map((part, index) => {
			if (part === ']') {
				return key[index];
			}
			return part;
		})
		.join('.');
}
function replaceArrayNotationByIndexes ( path , key ) { if ( ! path || ! path . includes ( '[]' ) ) { return path ; } return path . split ( / \.|\[ / ) . map ( ( part , index ) => { if ( part === ']' ) { return key [ index ] ; } return part ; } ) . join ( '.' ) ; }
If in the path [] appears it will be populated
 with current key indices value.
If in the path [] appears it will be populated with current key indices value .