muuri
Version:
Responsive, sortable, filterable and draggable grid layouts.
19 lines (16 loc) • 427 B
JavaScript
/**
* Copyright (c) 2015-present, Haltu Oy
* Released under the MIT license
* https://github.com/haltu/muuri/blob/master/LICENSE.md
*/
var objectType = '[object Object]';
var toString = Object.prototype.toString;
/**
* Check if a value is a plain object.
*
* @param {*} val
* @returns {Boolean}
*/
export default function isPlainObject(val) {
return typeof val === 'object' && toString.call(val) === objectType;
}