ramda-adjunct
Version:
Ramda Adjunct is the most popular and most comprehensive set of utilities for use with Ramda, providing a variety of useful, well tested functions with excellent documentation.
25 lines (23 loc) • 626 B
JavaScript
import { complement } from 'ramda';
import isMap from './isMap.js';
/**
* Checks if value is complement of `Map` object.
*
* @func isNotMap
* @memberOf RA
* @category Type
* @since {@link https://char0n.github.io/ramda-adjunct/2.27.0|v2.27.0}
* @sig * -> Boolean
* @param {*} val The value to test
* @return {boolean}
* @see {@link RA.isMap|isMap}
* @example
*
* RA.isNotMap(new Map()); //=> false
* RA.isNotMap(new Map([[1, 2], [2, 1]])); //=> false
* RA.isNotMap(new Set()); //=> true
* RA.isNotMap({}); //=> true
* RA.isNotMap(12); //=> true
*/
var isNotMap = complement(isMap);
export default isNotMap;