remove exchange rates
This commit is contained in:
parent
cc6c59253f
commit
fbb45ed9f7
8 changed files with 163 additions and 101 deletions
|
|
@ -35,3 +35,15 @@ async function hash(string) {
|
|||
.join('')
|
||||
return hashHex
|
||||
}
|
||||
|
||||
function isJson(str) {
|
||||
if (typeof str !== 'string') {
|
||||
return false
|
||||
}
|
||||
try {
|
||||
JSON.parse(str)
|
||||
return true
|
||||
} catch (error) {
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue