Skip to content

segmentsMatch

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/apps/api/src/tours/tour-targeting.ts

Segment filter: an experience with no required segments targets everyone; otherwise at least one declared visitor segment must intersect (case- and whitespace-insensitive).

Signature

ts
function segmentsMatch(required: string[] | undefined | null, provided: string[] | undefined | null): boolean

Parameters

NameType
required`string[]
provided`string[]

Returns: boolean

Was this page helpful?

Download as PDF