Skip to content

@technobuddha > library > Object > Conversion

Type Alias: BooleanOptions

ts
type BooleanOptions = {
  falseValues?: Iterable<
     | string
    | RegExp>;
  trueValues?: Iterable<
     | string
    | RegExp>;
};

Defined in: to-boolean.ts:8

Options for the toBoolean function

Properties

PropertyTypeDescriptionDefined in
falseValues?Iterable< | string | RegExp>An iterable list of values that are "false"src/to-boolean.ts:12
trueValues?Iterable< | string | RegExp>An iterable list of values that are "true"src/to-boolean.ts:10