equalsIgnoreCase in javascript.
Install using npm:
npm install equals-ignore-casee
const equalsIgnoreCase = require("equals-ignore-case")("en-US");
ignoreCase.equals('FOO', 'Foo'); // => true
Returns a compare function for the provided locale.
Returns true if the specified strings are equal in the specified locale ignoring case.
MIT