'extendDeep' is now 'extend'
This commit is contained in:
@@ -144,11 +144,7 @@ export function grayscale ({red, green, blue}) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function extend (obj, ...sources) {
|
export function extend (obj, ...sources) {
|
||||||
return Object.assign({}, obj, ...sources);
|
const extended = Object.assign({}, obj);
|
||||||
}
|
|
||||||
|
|
||||||
export function extendDeep (obj, ...sources) {
|
|
||||||
let extended = extend(obj);
|
|
||||||
|
|
||||||
sources.forEach(src => {
|
sources.forEach(src => {
|
||||||
forEach(src, (value, key) => {
|
forEach(src, (value, key) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user