code: function defineProperties(obj, props) {
          props = angular.copy(props);
          angular.forEach(props, function (prop) {
            if (!('writable' in prop)) prop.writable = true;
          });
          Object.defineProperties(obj, props);
        }
docs: Call Object.defineProperties but configure all properties as writable.