Skip to content

limit options.minOccurrence to array.length #10

@milahu

Description

@milahu
    function getSubstrings(array, options = {}) {
        const minLength = options.minLength || 3;
        const minOccurrence = Math.min(array.length, (options.minOccurrence || 2));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions