Composable functional array predicates
#data
#functional
const containsOnlyFloridaOrTexas = contains(
or(
only(['Miami', 'Orlando']),
only(['Austin', 'Dallas'])
)
)
true === containsOnlyFloridaOrTexas(['Miami'])
false === containsOnlyFloridaOrTexas(['Miami', 'LA'])