UNPKG

underscore

Version:

JavaScript's functional programming helper library.

12 lines (8 loc) 205 B
define(function () { // Is a given variable an object? function isObject(obj) { var type = typeof obj; return type === 'function' || (type === 'object' && !!obj); } return isObject; });