• Returns whether all the elements in the given objects are not null or undefined

    Parameters

    • Optionalobjects: any[]

      the objects to check

    Returns boolean

    whether all the elements in the given objects are not null or undefined

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