Skip to content

Commit 3594052

Browse files
yugasunPanJiaChen
authored andcommitted
fix[Utils]: fixed deepClone error msg (PanJiaChen#1748)
1 parent d1b7869 commit 3594052

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ export function debounce(func, wait, immediate) {
278278
*/
279279
export function deepClone(source) {
280280
if (!source && typeof source !== 'object') {
281-
throw new Error('error arguments', 'shallowClone')
281+
throw new Error('error arguments', 'deepClone')
282282
}
283283
const targetObj = source.constructor === Array ? [] : {}
284284
Object.keys(source).forEach(keys => {

0 commit comments

Comments
 (0)