jsonbyte
  • Get Started
  • Property
    • Get
    • Create
    • Change
    • Remove
    • Merge
    • Replace
    • Exists
    • Preview
  • Comments
    • Create
    • Remove
    • Get
    • All
  • Array
    • Create Element
    • Create Element In First
    • Remove Element
    • Get Element
  • Conditional
    • Key
    • Value
  • extras
    • Join
    • Leave
Powered by GitBook
On this page
  • startsWith
  • includes
  • endsWith
  1. Conditional

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);
PreviousKeyNextJoin

Last updated 2 years ago