File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -319,7 +319,7 @@ export function each<I extends Dictionary<any> | any[] | readonly any[] | ArrayL
319319 }
320320 else {
321321 for ( let key in arr ) {
322- if ( arr . hasOwnProperty ( key ) && key !== protoKey ) {
322+ if ( arr . hasOwnProperty ( key ) ) {
323323 cb . call ( context , ( arr as Dictionary < any > ) [ key ] , key as any , arr ) ;
324324 }
325325 }
@@ -436,11 +436,11 @@ export function keys<T extends object>(obj: T): (KeyOfDistributive<T> & string)[
436436 // `Object.keys` only return string rather than `number | string`.
437437 type TKeys = KeyOfDistributive < T > & string ;
438438 if ( Object . keys ) {
439- return filter ( Object . keys ( obj ) as TKeys [ ] , key => key !== protoKey ) ;
439+ return Object . keys ( obj ) as TKeys [ ] ;
440440 }
441441 let keyList : TKeys [ ] = [ ] ;
442442 for ( let key in obj ) {
443- if ( obj . hasOwnProperty ( key ) && key !== protoKey ) {
443+ if ( obj . hasOwnProperty ( key ) ) {
444444 keyList . push ( key as any ) ;
445445 }
446446 }
You can’t perform that action at this time.
0 commit comments