isSymbol
isSymbol :: a โ Boolean
import isSymbol from 'deep-waters/isSymbol';
const symbol = Symbol('foo');
isSymbol(symbol); // โ true
isSymbol('foo'); // โ 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