Key

startsWith

you can get property value via file.conditional.key.startsWith function

const json = require("jsonbyte");


const file = new json("./file.json")

const con = file.conditional.key.startsWith("a")
console.log(con)

includes

you can get property value via file.conditional.key.includes function

const json = require("jsonbyte");


const file = new json("./file.json")

const con = file.conditional.key.includes("b")
console.log(con)

endsWith

you can get property value via file.conditional.key.endsWith function

const json = require("jsonbyte");


const file = new json("./file.json")

const con = file.conditional.key.endsWith("c")
console.log(con)

Last updated