UNPKG

@akala/core

Version:
11 lines 414 B
export function isReversible(formatter) { switch (typeof formatter) { case 'function': return 'unformat' in formatter.prototype && typeof formatter.prototype.unformat == 'function'; case 'object': return formatter && 'unformat' in formatter && typeof formatter.unformat == 'function'; default: return false; } } //# sourceMappingURL=common.js.map