Artifact Content
Artifact 6483f7620667266d86fa5d8f4a68d2bd01635b909ad096c649d3c9564fd44fad:
- File public/riot-3.13.2/lib/browser/common/util/checks/is-object.js — part of check-in [12a9bb700d] at 2021-08-11 18:56:04 on branch trunk — Import from git Added a changelog (user: dev size: 343)
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' }