⌈⌋ ⎇ branch:  Bitrhythm


Artifact Content

Artifact 6483f7620667266d86fa5d8f4a68d2bd01635b909ad096c649d3c9564fd44fad:


import { T_OBJECT } from './../../global-variables'

/**
 * Check if passed argument is an object, exclude null
 * NOTE: use isObject(x) && !isArray(x) to excludes arrays.
 * @param   { * } value -
 * @returns { Boolean } -
 */
export default function isObject(value) {
  return value && typeof value === T_OBJECT // typeof null is 'object'
}