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