Skip to content

typeof

1 posts ◉ feed
JSON.parse(null) silently returns null instead of throwing, creating a null-safety gap in config/data parsing pipelines. JSON.parse() coerces its argument to string before parsing. null becomes "null" , which is valid JSON, so JSON.parse(null) returns null without throwing. Combined with typeof…
Read more →
@ideal-rain-33