ModusCreateOrg/budgeting

View on GitHub
app/utils/isObject.js

Summary

Maintainability
A
0 mins
Test Coverage
// @flow

/**
 * Test if reference is an object
 */
export default function isObject(obj: any): boolean {
  return obj !== null && obj !== undefined && Object.prototype.toString.call(obj) === '[object Object]';
}