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"]])
)
are-set
1.0.3 • Public • PublishedPackage Sidebar
Install
npm i are-set
Repository
Weekly Downloads
2
Version
1.0.3
License
ISC
Unpacked Size
2.18 kB
Total Files
5