Skip to content

@technobuddha > library > String > Comparison

Type Alias: CompareStringsOptions

ts
type CompareStringsOptions = {
  caseInsensitive?: boolean;
  natural?: boolean;
  version?: boolean;
};

Defined in: compare-strings.ts:8

Options for the compareStrings function

Properties

PropertyTypeDescriptionDefined in
caseInsensitive?booleanif true, strings are to be compared case insensitivesrc/compare-strings.ts:10
natural?booleanif true, compare numeric portions of the string as numberssrc/compare-strings.ts:12
version?booleanif true, compare strings as version numberssrc/compare-strings.ts:14