source:
frontend/node_modules/underscore/amd/isObject.js
| Last change on this file was 9af201e, checked in by , 11 days ago | |
|---|---|
|
|
| File size: 205 bytes | |
| Line | |
|---|---|
| 1 | define(function () { |
| 2 | |
| 3 | // Is a given variable an object? |
| 4 | function isObject(obj) { |
| 5 | var type = typeof obj; |
| 6 | return type === 'function' || (type === 'object' && !!obj); |
| 7 | } |
| 8 | |
| 9 | return isObject; |
| 10 | |
| 11 | }); |
Note:
See TracBrowser
for help on using the repository browser.
