![]() The following function works in all browsers: ![]() ![]() For example, "Hello world".includes("world") returns true for most browsers, but is not supported in IE 6 through 11 and Opera Mini, and older versions of other browsers. Javascript also provides the includes function supported by most browsers. This javascript function returns true if the substring is contained within the string. ![]()
0 Comments
Leave a Reply. |