[Proposal] ignoreCase method
wozniakj.robert at gmail.com
Wed Jun 27 15:37:00 UTC 2018
I think you’re right, It could be simpler to do it like that.
I have checked “localeCompare”, it does compare case sensitive strings but it doesn’t compare strings in an array and to do it, you will have to execute the method as many times as strings in an array. By using ignoreCase method, you will pass specific array and the method will do it for you inside. Second thing, “localeCompare” returns numbers: 0, 1, -1, -2 depends on the result, a method proposed by me returns true or false.
Another thing would be that “localeCompare” is heavier that ignoreCase method. I think we should have lightweight alternative to compare case sensitive strings.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss