Open chadhietala opened 8 years ago
This adds an identity check for falsy values before the value is sanitized. Currently we do work to sanitize things like undefined.
undefined
This is from a bench of a thousand link-tos Before:
link-to
After:
such Unsanitiveable
Unsanitiveable
needs señor tests.
Not really sure how to test this as the sanitization function is local. Not sure how helpful the test is.
This adds an identity check for falsy values before the value is sanitized. Currently we do work to sanitize things like
undefined
.This is from a bench of a thousand
link-to
s Before:After: