I create 2 functions for the prototype object, and errors are added to the console:
jquery-2.2.3.min.js: 2 Uncaught TypeError: W [g] .exec is not a function
Perhaps something is in conflict with jquery , tell me how to solve the problem?
Here is an example of the functions:
Object.prototype.getFirstKey = function () { for (var i in this) { return i; break; } } Object.prototype.getFirstValue = function () { for (var i in this) { return this[i]; break; } }