function transform(object) {
  // eslint-disable-next-line no-restricted-syntax
  for (const key in object) {
    // eslint-disable-next-line no-prototype-builtins
    if (object.hasOwnProperty(key)) {
      const child = object[key];
      if (child === null || child === undefined) {
        return;
      } if (child.transform === true) {
        object[key] = objectSpace[child.parent][child.method](child.target);
      } else if (typeof child === 'object') {
        transform(child);
      }
    }
  }
}
Looks for transform key and uses objectSpace to call objects
@param object