UNPKG

jtc-utils

Version:
12 lines (8 loc) 241 B
import { windows31j } from "./charset/windows31j.ts"; const encoder = windows31j.createEncoder(); export function isWindows31j(value: string | null | undefined) { if (!value) { return false; } return encoder.canEncode(value); }