UNPKG

ramda-extension

Version:

Helpful functions built on top of the mighty Ramda

29 lines (26 loc) 714 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _ramda = require("ramda"); /** * Returns `true` if any of the items from first array is not the second array. * * @func * @category List * * @param {Array} List * @param {Array} List * @return {Boolean} If any of the items from first array is not in the second array. * * @example * * R_.containsNone(['e', 'f'], ['a', 'b', 'c']) // true * R_.containsNone(['a', 'f'], ['a', 'b', 'c']) // false * * @sig [a] -> [a] -> Boolean */ var containsNone = (0, _ramda.curry)((0, _ramda.compose)(_ramda.isEmpty, _ramda.intersection)); var _default = containsNone; exports.default = _default;