existed
v0.0.1
Published
existed - Is there a variable in the object
Downloads
5
Maintainers
Readme
Existed
Existed - Is there a variable in the object. I was bored, so I'm ready to introduce you to a super innovative feature that will make you bored when I write this feature
Installation
YARN
yarn add existed
NPM
npm i -s existed
Getting Started
The function determines whether there is a variable with any name in the object
Import
import { isExisted } from "existed";
//OR
import { existed } from "existed";
Use
const object = { "name": "admin" };
object.isExisted("name"); //true;
object.isExisted("admin"); //false;
//OR
isExisted("name", object); //true
isExisted("admin", object); //false