function findTypeName(value) {
      var entry = findInArray(typed.types, function (entry) {
        return entry.test(value);
      });

      if (entry) {
        return entry.name;
      }

      throw new TypeError('Value has unknown type. Value: ' + value);
    }
Find a type that matches a value.
@param {*} value
@return {string} Returns the name of the first type for which
                 the type test matches the value.