//
// Copyright (C) Stanislaw Adaszewski, 2020
// Contact: s.adaszewski@gmail.com
// Website: https://adared.ch/wba
// License: GNU Affero General Public License, Version 3
//
import { h } from 'preact';
function wbFormatSpecialValue(value) {
if (value === null) return (null);
if (value === undefined) return (undefined);
if (typeof(value) === 'boolean') return ({ String(value) });
if (value === '') return '-';
return String(value);
}
export default wbFormatSpecialValue;