Options
All
  • Public
  • Public/Protected
  • All
Menu

Module lib/util

Index

Functions

getFieldType

  • Get the fieldType from the formSpecific with questionName or undefined

    Parameters

    Returns FieldType | undefined

getForm

  • getForm(project: Project, formId: string): Form | undefined
  • Get the Form from the project with id equal to formId or undefined

    Parameters

    Returns Form | undefined

getFormSpecific

  • Get the FormSpecific from the form with id equal to specificId or undefined

    Parameters

    • form: Form
    • specificId: string

    Returns FormSpecific | undefined

getUserProject

  • Get the ProjectUser from the project with username or undefined

    Parameters

    • project: Project
    • username: string

    Returns ProjectUser | undefined

hasDuplicates

  • hasDuplicates(l: string[]): boolean
  • Return true if the array has duplicates

    Parameters

    • l: string[]

    Returns boolean

includes

  • includes(a: string[], b: string[]): boolean
  • Return true if a contains all the element of b, false otherwise.

    Parameters

    • a: string[]
    • b: string[]

    Returns boolean

Generated using TypeDoc