Nodejs String Equal Ignore Case equalsIgnoreCase(otherStr)

Here you can find the source of equalsIgnoreCase(otherStr)

Method Source Code

String.prototype.equalsIgnoreCase = function (otherStr) {
    return this.toLowerCase() === otherStr.toLowerCase();
}