Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/Necriso/ScriptableWidgets
/ formatValue
Function
formatValue
tankstellenpreise.js:80–87 ·
view source on GitHub ↗
(value)
Source
from the content-addressed store, hash-verified
78
}
79
80
function
formatValue(value) {
81
if
(!value) {
82
return
'-'
83
}
84
let
lastDigit =
'⁹'
85
let
price = value.toString().slice(0, -1)
86
return
price + lastDigit +
"€"
87
}
88
89
async
function
createWidget(data, brand) {
90
Callers
1
createWidget
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected