Module string

Augmentations for strings.

Remarks

Importing this module

This module's augmentations can be applied by using the following import:

import "@neotype/extensions/string.js";

Comparing strings

Strings implement Eq and Ord.

  • Two strings are equal if they are strictly equal.
  • Strings are compared lexicographically from left to right according to their 16-bit code unit representation.

Combining strings as a semigroup

Strings implement Semigroup. They are combined using concatenation.

Index

Interfaces

Generated using TypeDoc