code: function validateConstructor(roleName, validationFunction) {
      if (!angular.isString(roleName)) {
        throw new TypeError('Parameter "roleName" name must be String');
      }
  
      if (!angular.isArray(validationFunction) && !angular.isFunction(validationFunction)) {
        throw new TypeError('Parameter "validationFunction" must be array or function');
      }
    }
docs: Checks if provided permission has accepted parameter types
  @methodOf permission.Role
  @private
  
  @throws {TypeError}
  
  @param roleName {String} Name representing role
  @param validationFunction {Function|Array<String>} Optional function used to validate if permissions are still
  valid or list of permission names representing role