ezyVet Javascript Helper Library Documentation
    Preparing search index...

    Function conditionallyGroupObjectProperties

    • Function that receivs an object and creates an array out of that object properties. The properties in the end result array are chosen based on the checks passed. For instance, if we passed in an object of obj = {a : 1, b:2, c:3}, and introduced checks to only include properties with the keys a and b, the end result would look like this: [{a:1}, {b:2}]

      Type Parameters

      • T extends Record<string, any>

        extends Record<string, any>

      Parameters

      Returns Partial<T>[]