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 const { keys } = Object;
export function blank () { export function blank () {
@ -12,7 +11,7 @@ export function forOwn ( object, func ) {
export function assign ( target, ...sources ) { export function assign ( target, ...sources ) {
sources.forEach( source => { sources.forEach( source => {
for ( let key in 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