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