after How to check if an object is an object of arguments in JavaScript?
None of the proposed solutions work in IE8. Is there a way to determine if an object is an object of arguments in IE8?
@Rocket and @cliffs_of_insanity are correct, I had to test incorrectly at first.
All together I came:
var isArguments = function(obj) { return (obj != null) && // since undefined == null ((Object.prototype.toString.call(obj) == '[object Arguments]') || (!!obj.callee)); // fixes for ie8 non-strict-mode };
More about the history of objects and why this works: https://developer.mozilla.org/en/JavaScript/Reference/Functions_and_function_scope/arguments/callee
Source: https://habr.com/ru/post/1413023/More articles:IsolatedStorageException: Unable to create storage directory. (Exception from HRESULT: 0x80131468) - c #Basic data - How to disable the failure mechanism - iosWhat is the Cassandra CQL equivalent for INCR (CounterColumn increment)? - cassandraReturns a string instead of a field value when the condition is met in MySQL - mysqlWhy don't I need to declare a UIAlertViewDelegate in the header? - iosember data: manually send model to updated state - ember.jsRemoving macports when port is down - macportsWhy shouldn't I access elements more "directly" (elemId.innerHTML) - javascriptHow to βundoβ form changes? - jqueryHow to get Rails Heroku backtrace from Heroku error - ruby ββ| fooobar.comAll Articles