Function filterObject

  • Filter object to given fields

    Parameters

    • toFilter: any
    • requiredFields: string[]

    Returns any