Same issue as the comment above. Might need to do it for a map. I have these functions defined for that purpose. Though I agree, I wouldn't import a package for a 3 line function :)
CSS text-transform is a good option, but it only works in CSS. In a non-browser environment, that won't work. I'm not saying there are not often better alternatives to these packages. But all of them are useful in certain (possibly rare) circumstances.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi Akim! why dont you use the css text-transform property for this? Any corner case?
Case insensitive array searching? List searching?
toLowerCase() would work here right?
Same issue as the comment above. Might need to do it for a
map
. I have these functions defined for that purpose. Though I agree, I wouldn't import a package for a 3 line function :)thats my whole point is. anyways thanks for your feedback.
CSS
text-transform
is a good option, but it only works in CSS. In a non-browser environment, that won't work. I'm not saying there are not often better alternatives to these packages. But all of them are useful in certain (possibly rare) circumstances.