function anyOf(target, allowed) {
  return allowed.some(function (t) {
    return type[t](target);
  });
}
Checking whether the given variable is of any of the given types.

@todo   Optimize this function by dropping `some`.

@param  {mixed} target  - Variable to test.
@param  {array} allowed - Array of allowed types.
@return {boolean}