fastify / fastify-secure-session

Create a secure stateless cookie session for Fastify
MIT License
201 stars 45 forks source link

chore: use isArray and isBuffer #191

Closed is2ei closed 1 year ago

is2ei commented 1 year ago

Changed it to use isArray and isBuffer instead of instanceof. I simply measured performance and found isArray is faster than instanceof.

Also, I think isArray and isBuffer are more readable.

Checklist