Serializes RegExp instances.
import { stringify } from 'json-marshal';import regexpAdapter from 'json-marshal/adapter/regexp';stringify(/Old/g, { adapters: [regexpAdapter()] }); Copy
import { stringify } from 'json-marshal';import regexpAdapter from 'json-marshal/adapter/regexp';stringify(/Old/g, { adapters: [regexpAdapter()] });
Serializes RegExp instances.