UNPKG

ember-changeset

Version:
10 lines (8 loc) 279 B
import { isArray } from '@ember/array'; /** * Employ Ember strategies for isObject detection * @method isObject */ export default function isObject(val) { return val !== null && typeof val === 'object' && !(val instanceof Date || val instanceof RegExp) && !isArray(val); }