UNPKG

pure-fun

Version:

A collection of pure functions/helpers with 0 dependencies

7 lines (6 loc) 244 B
/** * Safe wrapper around JSON.parse() which tries to parse stringified JSON, * returns the default if an object was passed or empty object if an error is thrown */ declare const parseJSON: (json: any) => {}; export default parseJSON;