Skip to main content

StringContainsArray

This Script is part of the Filters And Transformers Pack.#

Checks whether a substring or an array of substrings is within a string array (each item will be checked). Single strings are also supported. For example, for substrings ['a','b','c'] in a string 'a' the script will return true.

Script Data#


NameDescription
Script Typejavascript
Tagsfilter, string

Inputs#


Argument NameDescription
leftThe string to search in. For example, "string1".
rightThe array of substrings to search in the string. For example, ["string1","string2"].

Outputs#


There are no outputs for this script.