.toLowerCase in javascript "not a function"? -
i'm trying this
if (patharray.tolowercase().indexof("blah") != -1{} when debugging console error "patharray.tolowercase not function". why message?
tolowercase method of string. if want able find string in array without knowing exact case can add together map step chain:
patharray.map(function(s) { homecoming s.tolowercase(); }).indexof('blah') !== -1 javascript
No comments:
Post a Comment