Pretty straight forward. In javascript, I need to check if a string contains any substrings held in an array.
相关问题
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- void before promise syntax
- Keeping track of variable instances
- how to split a list into a given number of sub-lis
Not that I'm suggesting that you go and extend/modify
String
's prototype, but this is what I've done:String.prototype.includes()