Skip to content
function since v0.1

matchesName

Constructs and returns a function that filters ModuleScript if it matches a given name. Often paired with loadChildren and loadDescendants as you will frequently filter by name.

function prvd.matchesName(
  name: string
): (ModuleScript) -> boolean
export const matchesName: (
  name: string
) => (module: ModuleScript) => boolean

Parameters

name : string

The name to filter with.


Returns

A predicate function that filters module if it matches the name.


Learn More