code: function distinctElements(a1,a2){
      var ret = a1.slice();
      a2.forEach(function(a2item){
        if(ret.indexOf(a2item)<0){
          ret.push(a2item);
        }
      });
      return ret;
    }
docs: User.inherit = UserEntity.inherit;