UNPKG

data-synchronizer

Version:

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

13 lines (10 loc) 245 B
const $type = 'arrowFunction'; const to = (value: Function) => ([ $type, value.toString(), ]) const from = (value: string) => { const arrowFunc = new Function(`return ${value}`); return arrowFunc(); } export default [$type, from, to];