Skip to content

Commit

Permalink
fix[Utils]: fixed deepClone error msg (#1748)
Browse files Browse the repository at this point in the history
  • Loading branch information
yugasun authored and PanJiaChen committed Mar 21, 2019
1 parent 63dba8b commit ae6bbf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,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 => {
Expand Down

0 comments on commit ae6bbf7

Please sign in to comment.