function readFromObject(object, key) {
    const keys = key.split('.');
    let current = object;
    for (const k of keys)if (!current || 'object' != typeof current || !(k in current)) return;
    else current = current[k];
    return 'string' == typeof current ? current : void 0;
}
export { readFromObject };
