Here's a written account from The New Yorker:
A pair of brown capuchin monkeys are sitting in a cage. From time to time, their caretakers give them tokens, which they can then exchange for food. It’s a truth universally acknowledged that capuchin monkeys prefer grapes to cucumbers. So what happens when unfairness strikes—when, in exchange for identical tokens, one monkey gets a cucumber and the other a grape?
When Sarah Brosnan and Frans de Waal carried out just this experiment, in 2003, focussing on female capuchin monkeys, they found that monkeys hate being disadvantaged.
A monkey in isolation is happy to eat either a grape or a slice of cucumber. But a monkey who sees that she’s received a cucumber while her partner has gotten a grape reacts with anger: she might hurl her cucumber from her cage.
Some primates, Brosnan and de Waal concluded, “dislike inequity.” They hate getting the short end of the stick. Psychologists have a technical term for this reaction: they call it “disadvantageous-inequity aversion.”
This instinctual aversion to getting less than others has been found in chimpanzees and dogs, and it occurs, of course, in people, in whom it seems to develop from a young age. The psychologists Alessandra Geraci and Luca Surian have found, for example, that babies as young as twelve months prefer fair-minded cartoon animals to unfair ones.
(From How We Learn Fairness by Maria Konnikova, in The New Yorker)