@salesforce/b2c-tooling-sdk / operations/mrt / createGlobFilter
Function: createGlobFilter()
createGlobFilter(
patterns?): (path) =>boolean
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/bundle.ts:126
Creates a glob filter function from patterns.
Patterns can include negations (prefixed with !). A path matches if it matches any positive pattern and does not match any negative pattern.
Parameters
patterns?
string[]
Glob patterns to match against
Returns
Filter function that returns true for matching paths
(
path):boolean
Parameters
path
string
Returns
boolean