UNPKG

@webqit/util

Version:

Utility functions used accross multiple JS libraries.

12 lines (10 loc) 183 B
/** * Tells if val is pure object. * * @param object val * * @return bool */ export default function(val) { return !Array.isArray(val) && typeof val === 'object' && val; };