Interface OccurencesOptions

interface OccurencesOptions {
    overlap?: boolean;
}

Properties

Properties

overlap?: boolean

Allow overlapping matches, ie. "aa" in "aaa" will return 2 instead of 1