You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* **`alphanumericCompare`**: Function which, given two strings, the type of comparison to be verified, and optional options, performs the comparison between the two strings and returns a boolean indicating whether the indicated comparison is respected or not. [See demo](https://react-tools.ndria.dev/#/utils/alphanumericCompare)
3
-
* @param {string} string1 - first string to compare.
4
-
* @param {string} string2 - second string to compare.
5
-
* @param {"<" | ">" | "=" | ">=" | "<="} compareType - type of compare to verify.
6
-
* @param {Intl.CollatorOptions} opts - options object to execute compare.
7
-
* @returns {boolean} result - boolean that indicates whether the indicated comparison is respected or not.
3
+
* @param {Object} param - object
4
+
* @param {string} param.string1 - first string to compare.
5
+
* @param {string} param.string2 - second string to compare.
6
+
* @param {"<" | ">" | "=" | ">=" | "<="} [param.compareType] - type of compare to verify.
7
+
* @param {Intl.LocalesArgument} [param.locales] - A string with a BCP 47 language tag or an Intl.Locale instance, or an array of such locale identifiers. The runtime's default locale is used when undefined is passed or when none of the specified locale identifiers is supported.
8
+
* @param {Intl.CollatorOptions} [param.opts] - An object adjusting the output format. Corresponds to the options parameter of the Intl.Collator() constructor.
9
+
* @returns {boolean|number} result - boolean or number that indicates whether the indicated comparison is respected or not.
0 commit comments