UNPKG

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.

23 lines (22 loc) 550 B
import { complement } from 'ramda'; import isMap from './isMap'; /** * Checks if value is complement of `Map` object. * * @func isNotMap * @memberOf RA * @category Type * @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;