Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 357 Bytes

Before.md

File metadata and controls

20 lines (13 loc) · 357 Bytes

Before

Example#1

import JStr from "@akcybex/jstr";

const result = JStr.of("Hello world").before("world").toString();
console.log(result); // Outputs: 'Hello'

Example#2

import JStr from "@akcybex/jstr";

const result = JStr.before("This is my name", "my name");

console.log(result); // Outputs: 'This is '