UNPKG

bingo-functional-js

Version:

A port of the PHP bingo-functional library

15 lines (12 loc) 220 B
/** * isString function * isString :: a -> Bool * @param {*} val * @returns {boolean} * @example * * isString('xyz') * // => true */ const isString = (val) => typeof val === 'string' module.exports = isString