d26db06f74
NPM Installation / build (16.x, ubuntu-latest) (push) Has been cancelled
NPM Installation / build (16.x, windows-latest) (push) Has been cancelled
NPM Installation / build (17.x, ubuntu-latest) (push) Has been cancelled
NPM Installation / build (17.x, windows-latest) (push) Has been cancelled
NPM Installation / build (18.x, ubuntu-latest) (push) Has been cancelled
NPM Installation / build (18.x, windows-latest) (push) Has been cancelled
9 lines
291 B
JavaScript
9 lines
291 B
JavaScript
import { isPlainObject } from './isPlainObject.js';
|
|
/**
|
|
* Returns whether the payload is a an empty object (excluding special classes or objects with other
|
|
* prototypes)
|
|
*/
|
|
export function isEmptyObject(payload) {
|
|
return isPlainObject(payload) && Object.keys(payload).length === 0;
|
|
}
|