0.0.1 • Published 4 years ago

@jellybeanci/is-empty v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

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;