Skip to content

Commit ae6bbf7

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

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
@@ -274,7 +274,7 @@ export function debounce(func, wait, immediate) {
274274
*/
275275
export function deepClone(source) {
276276
if (!source && typeof source !== 'object') {
277-
throw new Error('error arguments', 'shallowClone')
277+
throw new Error('error arguments', 'deepClone')
278278
}
279279
const targetObj = source.constructor === Array ? [] : {}
280280
Object.keys(source).forEach(keys => {

0 commit comments

Comments
 (0)