all-string-methods
Version:
You will get all required string operations from this package
28 lines (17 loc) • 538 B
Markdown
required string operations from this package
const STR_METHODS = require("all-string-methods");
const string = "Rohit";
console.log(STR_METHODS.toCharArray(string)); -
Output - ['R', 'o', 'h', 'i', 't']
const string1 = "Rohit";
const string2 = "Rohit";
console.log(STR_METHODS.equals(string1, string2)); -
Output - true
const string1 = "Rohit";
const string2 = "rohIT";
console.log(STR_METHODS.equalsIgnoreCase(string1, string2)); -
Output - true
You will all