UNPKG

ramda-extension

Version:

Helpful functions built on top of the mighty Ramda

31 lines (28 loc) 789 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _ramda = require("ramda"); /** * Testing string if equals ignoring case. * * @func * @category String * * @param {string} x * @param {string} y * @return {boolean} True if `x` equals `y` ignore case * * @example * * R_.equalsStringIgnoreCase('hello', 'HELLO') // true * R_.equalsStringIgnoreCase('HELLO', 'hello') // true * R_.equalsStringIgnoreCase('hello', 'hello') // true * R_.equalsStringIgnoreCase('hello', 'good bye') // false * * @sig a -> b -> Boolean */ var equalsStringIgnoreCase = (0, _ramda.useWith)(_ramda.equals, [_ramda.toLower, _ramda.toLower]); var _default = equalsStringIgnoreCase; exports.default = _default;