Value

startsWith

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

const json = require("jsonbyte");


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

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

includes

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

const json = require("jsonbyte");


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

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

endsWith

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

const json = require("jsonbyte");


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

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

Last updated