This condition will always return ‘false’ since JavaScript compares objects by reference, not value, what does this mean in the current Scenario?

in TS 4.9.3 and angular 15 application, i have a service function isEmpty() with following snippet of code.

    static isEmpty(value: any): boolean {
        if (value === null || value === undefined || value === {} || value === []) { 
            return true;
        }
    }

and it generates This condition will always return 'false' since JavaScript compares objects by reference, not value. issue for conditions value === {} and value === [].