What does ‘unit’ mean?

unit

( adj ) A stupid or foolish person. Dave is such a unit he doesn’t know which side of the pizza is up.