mirror of
https://github.com/antonmedv/fx
synced 2024-11-17 09:25:32 +00:00
13 lines
185 B
JavaScript
13 lines
185 B
JavaScript
// .fxrc.js %v
|
|
|
|
function reduce(input) {
|
|
let x = JSON.parse(input)
|
|
|
|
// Reducers %v
|
|
if (typeof x === 'undefined') {
|
|
return 'null'
|
|
} else {
|
|
return JSON.stringify(x)
|
|
}
|
|
}
|