Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vue严格模式下arguments不可使用,能否换成命名函数来解决 #73

Open
WYinGYA opened this issue Apr 24, 2022 · 1 comment

Comments

@WYinGYA
Copy link

WYinGYA commented Apr 24, 2022

Object.deepExtend = (function f(destination, source){
for (var property in source) {
if (source[property] && source[property].constructor &&
source[property].constructor === Object) {
destination[property] = destination[property] || {};
f(destination[property], source[property]);
} else {
destination[property] = source[property];
}
}
return destination;
})

@YellRes
Copy link

YellRes commented Nov 29, 2023

同样的问题,解决没有 @WYinGYA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants