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

    Parameters

    • Optionalobjects: any[]

      the objects to check

    Returns boolean

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

    anyNil([null, undefined]);    // true
    anyNil([null, {}]); // true
    anyNil(['foo', 'bar']); // false