case-insensitive-compare.js 182 B

1234567
  1. 'use strict';
  2. var toLowerCase = String.prototype.toLowerCase;
  3. module.exports = function (other) {
  4. return toLowerCase.call(this).localeCompare(toLowerCase.call(String(other)));
  5. };