MCPcopy 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
80function 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
89async function createWidget(data, brand) {
90

Callers 1

createWidgetFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected