badeball/xpath-analyzer

View on GitHub
lib/validators/node_type.ts

Summary

Maintainability
A
0 mins
Test Coverage
import {
  COMMENT,
  NODE,
  PROCESSING_INSTRUCTION,
  TEXT
} from "../node_type";

export function isValid (type: string): boolean {
  return type == COMMENT ||
    type == NODE ||
    type == PROCESSING_INSTRUCTION ||
    type == TEXT;
}