UNPKG

data-synchronizer

Version:

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

12 lines (9 loc) 203 B
const $type = 'date' const to = (value: Date) => { return [ $type, '' + value.getTime(), ] } const from = (value: string) => new Date(+value); export default [$type, from, to];