UNPKG

data-synchronizer

Version:

A versatile library for transferring data across multi-page applications or single page applications.

12 lines (9 loc) 193 B
const $type = 'number'; const to = (value: number) => { return [ $type, value.toString() ]; } const from = (value: string) => +value; export default [$type, from, to];