• Returns whether any of the elements in the given objects is not null or undefined

    Parameters

    • Optionalobjects: any[]

      the objects to check

    Returns boolean

    whether any of the elements in the given objects is not null or undefined

    anyNotNil([null, undefined]);    // false
    anyNotNil([null, {}]); // true