const PATH_DELIMITER = '__' ; export const serializeElementPath = ( path ) : string => { return path . join ( PATH_DELIMITER ) ; } ; export const getElementPath = ( serializedPath ) : readonly string [ ] => { return serializedPath === '' ? [ ] : serializedPath . split ( PATH_DELIMITER ) ; } ;