Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Necriso/ScriptableWidgets
/ formatValue
Function
formatValue
guenstigsteTankstelle.js:56–60 ·
view source on GitHub ↗
(value)
Source
from the content-addressed store, hash-verified
54
}
55
56
function
formatValue(value) {
57
let
lastDigit =
'⁹'
58
let
price = value.toString().slice(0, -1)
59
return
price + lastDigit +
"€"
60
}
61
62
function
createList(data) {
63
const
list =
new
ListWidget()
Callers
1
createWidget
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected