Skip to content

Commit 0805494

Browse files
committed
feat(get): update
1 parent fd1a660 commit 0805494

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/formats.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const DesignTokensType =
2424
}`
2525

2626
const getFunction =
27-
`const get = (obj, path, defValue) => {
27+
`const get = (obj, path, defValue = undefined) => {
2828
if (!path) return undefined
2929
const pathArray = Array.isArray(path) ? path : path.match(/([^[.\\]])+/g)
3030
const result = pathArray.reduce(

0 commit comments

Comments
 (0)