isMap
isMap :: a β Boolean
import isMap from 'deep-waters/isMap';
const map = new Map();
map.set('key', 'value');
isMap(map); // β true
isMap({ key: 'value' }); // β falseimport isString from 'deep-waters/isString';
import matchesPattern from 'deep-waters/matchesPattern';
const isEmail = compose(
isString,
matchesPattern(/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/),
);Last updated