code: function (value, array) {
              if (util.isFn(array.indexOf)) {
                  return array.indexOf(value);
              } else {
                  return $.inArray(value, array);
              }
          }
docs: Search for a specified value within an array, and return its index (or -1 if not found)
  @param   {*} value       The value to search for
  @param   {Array} array   The array to search
  @returns {int}           The index of value in array or -1 if not found