We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd1a660 commit 0805494Copy full SHA for 0805494
src/formats.ts
@@ -24,7 +24,7 @@ const DesignTokensType =
24
}`
25
26
const getFunction =
27
-`const get = (obj, path, defValue) => {
+`const get = (obj, path, defValue = undefined) => {
28
if (!path) return undefined
29
const pathArray = Array.isArray(path) ? path : path.match(/([^[.\\]])+/g)
30
const result = pathArray.reduce(
0 commit comments