[go: up one dir, main page]

are-set
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

are-set

usage

import areSet, { areSetAndTheSameType } from "are-set"

const dataYouDontKnow = JSON.parse("{\"hello\": true}")

console.log(
    "keys are in object",
                           // keys in string array
    areSet(dataYouDontKnow, ["hello"])
)

cosnole.log(
    "are in the object and the same type",
                                        // [[key, type]]
    areSetAndTheSameType(dataYouDontKnow, [["hello", "boolean"]])
)

Package Sidebar

Install

npm i are-set

Weekly Downloads

2

Version

1.0.3

License

ISC

Unpacked Size

2.18 kB

Total Files

5

Last publish

Collaborators

  • manuelwestermeier