@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
| Property | Type | Description | Defined in |
|---|---|---|---|
caseInsensitive? | boolean | if true, strings are to be compared case insensitive | src/compare-strings.ts:10 |
natural? | boolean | if true, compare numeric portions of the string as numbers | src/compare-strings.ts:12 |
version? | boolean | if true, compare strings as version numbers | src/compare-strings.ts:14 |