• Tests if a string matches all of the provided patterns

    Parameters

    • text: string

      The text to test

    • patterns: (string | RegExp)[]

      Array of patterns (strings or RegExps)

    Returns boolean

    true if all patterns match