truish
Version:
A lightweight utility to determine the truth value of strings
9 lines (8 loc) • 358 B
TypeScript
export function createMatcher(...words: string[]): (input: string) => Boolean;
export function truish(input: string): boolean;
export function falsish(input: string): boolean;
export function indeterminant(input: string): boolean;
declare module "truish" {
export { truish, falsish, indeterminant, createMatcher } from "truish";
export default truish;
}