code: function getProperty(object, propertyName) {
    const parts = propertyName.split('.');
    const length = parts.length;
    let property = object;
  
    for (let i = 0; i < length; i++) {
      if (property === undefined || property === null) {return property;}
      property = property[parts[i]];
    }
  
    return property;
  }
docs: Use . notation to get a property of an objec t, e.g. "links.name"->{"links":{"name":"val"}}