@@ -2304,15 +2304,18 @@ Object.defineProperty(Array.prototype, "last", {
2304
2304
return this . lastFrom ( 0 ) ;
2305
2305
}
2306
2306
} ) ;
2307
- Object . prototype . keyFromValue = function ( value ) {
2308
- for ( var key in this ) {
2309
- if ( this . hasOwnProperty ( key ) ) {
2310
- if ( this [ key ] === value ) {
2311
- return key ;
2307
+ Object . defineProperty ( Object . prototype , 'keyFromValue' , {
2308
+ enumerable : false ,
2309
+ value : function ( value ) {
2310
+ for ( var key in this ) {
2311
+ if ( this . hasOwnProperty ( key ) ) {
2312
+ if ( this [ key ] === value ) {
2313
+ return key ;
2314
+ }
2312
2315
}
2313
2316
}
2314
2317
}
2315
- } ;
2318
+ } ) ;
2316
2319
Array . prototype . indexOfKey = function ( value , key , start = 0 ) {
2317
2320
for ( var i = start ; i < this . length ; i ++ ) {
2318
2321
if ( this [ i ] [ key ] === value ) {
@@ -2329,9 +2332,12 @@ Math.roundDeep = function(number, deepness = 0) {
2329
2332
const multi = Math . pow ( 10 , deepness ) ;
2330
2333
return Math . round ( number * multi ) / multi ;
2331
2334
} ;
2332
- Object . prototype . fillDefaults = function ( defaults ) {
2333
- return module . exports . objFillDefaults ( this , defaults ) ;
2334
- } ;
2335
+ Object . defineProperty ( Object . prototype , 'fillDefaults' , {
2336
+ enumerable : false ,
2337
+ value : function ( defaults ) {
2338
+ return module . exports . objFillDefaults ( this , defaults ) ;
2339
+ }
2340
+ } ) ;
2335
2341
2336
2342
} , { } ] , 42 :[ function ( require , module , exports ) {
2337
2343
( function ( process , __dirname ) {
0 commit comments