提交学习笔记专用
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

8 lines
255 B

  1. import { getType } from './getType.js';
  2. /**
  3. * Returns whether the payload is an any kind of object (including special classes or objects with
  4. * different prototypes)
  5. */
  6. export function isAnyObject(payload) {
  7. return getType(payload) === 'Object';
  8. }