Parse a JSON string, or return the fallback if it fails to parse.
parse
parseOr(['fallback'])('["Good","JSON"]')// => ['Good', 'JSON']parseOr(['fallback'])('[Bad, JSON]')// => ['fallback'] Copy
parseOr(['fallback'])('["Good","JSON"]')// => ['Good', 'JSON']parseOr(['fallback'])('[Bad, JSON]')// => ['fallback']
Generated using TypeDoc
Parse a JSON string, or return the fallback if it fails to parse.