code: function validateConstructor(permissionName, validationFunction) {
        if (!angular.isString(permissionName)) {
          throw new TypeError('Parameter "permissionName" name must be String');
        }
        if (!angular.isFunction(validationFunction) && !angular.isArray(validationFunction)) {
          throw new TypeError('Parameter "validationFunction" must be Function or an injectable Function using explicit annotation');
        }
      }
docs: Checks if provided permission has accepted parameter types
  @methodOf permission.Permission
  @private
  
  @throws {TypeError}
  
  @param permissionName {String} Name repressing permission
  @param validationFunction {Function} Function used to check if permission is valid