That would only have been part of it. It is also designed to be more than a simple key/pair mapping. For example, you could have a test that checks for even numbers. or some other type of computation.
It’s very similar to ramda’s
cond in this way. http://ramdajs.com/docs/#cond