Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 400 Bytes

Is.md

File metadata and controls

24 lines (17 loc) · 400 Bytes

Is

Example#1

import JStr from "@akcybex/jstr";

const pattern = "foo*";
const value = "foobar";
const result = JStr.of(value).is(pattern);
console.log(result); // Outputs: true

Example#2

import JStr from "@akcybex/jstr";

const pattern = "baz*";
const value = "foobar";
const result = JStr.is(pattern, value);

console.log(result); // Outputs: false