check if key and its value in exists in object

an object(i.e. request.query) must contain these keys and with keys they must have truthy values

const invoice_query_params = [
                'invoice_id',
                'invoice_receipt',
                'invoice_status',
                'payment_id',
                'signature' 
            ];

Leave a Comment