Charter · API

matchAll

Returns the set of ids that at least one of the given patterns matches. A selection in a charter is this operation: a list of patterns applied to the ids that exist.

Patterns
['*.read', 'bookings.*']
Data ids
[
  'shows.read',
  'bookings.read',
  'bookings.write',
  'passes.read',
  'members.read',
]
Matched ids
[
  'shows.read',
  'bookings.read',
  'bookings.write',
  'passes.read',
  'members.read',
]
Output matches the expected value

Runs in this page on the installed package. The input and the expected output are defined by the example.