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

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)
PreviousGet ElementNextValue

Last updated 2 years ago