Skip to content

happypdf / assertIsOneOf

Function: assertIsOneOf()

ts
function assertIsOneOf(
   value, 
   valueName, 
   allowedValues): void;

Defined in: src/utils/validators.ts:34

Parameters

ParameterType
valueany
valueNamestring
allowedValues| Primitive[] | { [key: string]: Primitive; }

Returns

void

MIT Licensed. A fork of pdf-lib.