Don't Use includes(), use indexOf() Instead

I always forget that Internet Explorer does not support includes. Use indexOf instead. Luckily Edge is one step ahead and already has support.

=> MDN: array includes

September 13, 2017

Site Navigation

=> Home | About This Site | Privacy Policy

© 2024 Jackdaw's Nest

Proxy Information
Original URL
gemini://ja.ckdaw.net/post/don-t-use-includes-use-indexof-instead
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
140.200296 milliseconds
Gemini-to-HTML Time
0.245552 milliseconds

This content has been proxied by September (ba2dc).