UNPKG

plura

Version:

Super simple functional programming library

18 lines (13 loc) 273 B
const isArray = a => Array.isArray(a) const isString = s => typeof s === 'string' const isNumber = n => typeof n === 'number' const isObject = o => isArray(o) ? false : o instanceof Object module.exports = { isArray, isString, isNumber, isObject, }