fix[Utils]: fixed deepClone error msg (#1748)

This commit is contained in:
Yuga Sun 2019-03-21 15:14:15 +08:00 committed by Pan
parent d1b786946c
commit 3594052c90
1 changed files with 1 additions and 1 deletions

View File

@ -278,7 +278,7 @@ export function debounce(func, wait, immediate) {
*/
export function deepClone(source) {
if (!source && typeof source !== 'object') {
throw new Error('error arguments', 'shallowClone')
throw new Error('error arguments', 'deepClone')
}
const targetObj = source.constructor === Array ? [] : {}
Object.keys(source).forEach(keys => {