Dmx-repeat is not preserving number type

Wappler 5.0.0

Pseudo-code, syntax untested:

<span dmx-repeat:json="{{ {x: 1, y: 2} }}">
{{$key}}: {{$value}} {{$value.typeof()}}
</span>

Custom formatters:

dmx.Formatter('number', 'typeof', function (el) {
    return typeof el;
});

dmx.Formatter('object', 'typeof', function (el) {
    return typeof el;
});

dmx.Formatter('array', 'typeof', function (el) {
    return typeof el;
});

dmx.Formatter('string', 'typeof', function (el) {
    return typeof el;
});

Number variables get outputted as strings, this kinds of mess the logic in my app

It returns number in my test.

You can simplify the formatters to:

dmx.Formatter('any', 'typeof', function (el) {
  return typeof el;
});

Thanks for the formatter simplification. I don’t remember where this bug occurred so I can’t double-check my script. Consider the issue solved