UNPKG

isobject

Version:

Returns true if the value is an object and not an array or null.

11 lines (9 loc) 271 B
/*! * isobject <https://github.com/jonschlinkert/isobject> * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. */ export default function isObject(val) { return val != null && typeof val === 'object' && Array.isArray(val) === false; };