You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the value of a property of a Vue data model is a function. Vue Devtools currently just shows "Function" as the value. It would be neat if it showed the function signature instead (eg. "function someFunction(arg)").
You can get the signature by calling .toString() on the function and getting everything up to the closing parenthesis:
if (typeof value === "function") {
const valueStr = value.toString()
return valueStr.slice(0, valueStr.indexOf(")") + 1)
}
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
If the value of a property of a Vue data model is a function. Vue Devtools currently just shows
"Function"
as the value. It would be neat if it showed the function signature instead (eg."function someFunction(arg)"
).You can get the signature by calling
.toString()
on the function and getting everything up to the closing parenthesis:The text was updated successfully, but these errors were encountered: