Preview:
app.delete('/expressions/:id',(req,res,next)=>{
      const eleIndex = getIndexById(req.params.id,expressions);
    if(eleIndex!==-1){
        expressions.splice(eleIndex,1);
        res.status(204).send(expressions[eleIndex]);
    }
    else{
        res.status(404).send();
    }
});
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter