diff --git a/src/utils/object.js b/src/utils/object.js index 62c3a07..688b1ca 100644 --- a/src/utils/object.js +++ b/src/utils/object.js @@ -1,4 +1,3 @@ -const { hasOwnProperty } = Object.prototype; export const { keys } = Object; export function blank () { @@ -12,7 +11,7 @@ export function forOwn ( object, func ) { export function assign ( target, ...sources ) { sources.forEach( source => { for ( let key in source ) { - if ( hasOwnProperty.call( source, key ) ) target[ key ] = source[ key ]; + if ( source.hasOwnProperty( key ) ) target[ key ] = source[ key ]; } });