You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

8 lines
172 B
TypeScript

import { FormField } from "./field";
export class FormFieldsList {
static getField(fields: FormField[], name: string) {
return fields.find((f) => f.name == name);
}
}