Browse Source

Revert assign mod

semi-dynamic-namespace-imports
Bogdan Chadkin 9 years ago
parent
commit
705b1e97a5
  1. 3
      src/utils/object.js

3
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 ];
}
});

Loading…
Cancel
Save