UNPKG

bingo-functional-js

Version:

A port of the PHP bingo-functional library

15 lines (12 loc) 265 B
/** * isJsonObject function * isJsonObject :: a -> Bool * @param {*} val * @returns {boolean} * @example * * isJsonObject({}) * // => true */ const isJsonObject = (val) => val instanceof Object && val.constructor === Object module.exports = isJsonObject