SoFunction
Updated on 2025-02-28

Finally solved the indexOf method that does not support arrays in IE8


if (!)
{
  = function(elt /*, from*/)
  {
    var len = >>> 0;

    var from = Number(arguments[1]) || 0;
    from = (from < 0)
         ? (from)
         : (from);
    if (from < 0)
      from += len;

    for (; from < len; from++)
    {
      if (from in this &&
          this[from] === elt)
        return from;
    }
    return -1;
  };
}