export default function(r,t,i){if(!r)return i;var a,e;if(Array.isArray(t)&&(a=t.slice(0)),"string"==typeof t&&(a=t.split(".")),"symbol"==typeof t&&(a=[t]),!Array.isArray(a))throw new Error("props arg must be an array, a string or a symbol");for(;a.length;){if(e=a.shift(),!r)return i;if(void 0===(r=r[e]))return i}return r}