@jellybeanci/is-empty
v0.0.1
Published
Simple Empty Object Checker.
Downloads
3
Readme
is-empty
Simple Empty Object Checker.
npm i @jellybeanci/is-empty
import module
// ES6 Syntax
import {isEmpty} from "@jellybeanci/is-empty";
// Commonjs Syntax
const {isEmpty} = require("@jellybeanci/is-empty");
usage
const myObject = {};
isEmpty(myObject); // true
const person = {name: "Göksel", surname: "KÜÇÜKŞAHİN"};
isEmpty(person); // false
types
type isEmpty = (object: Object) => boolean;