npm.io
1.0.3 • Published 7 years ago

all-string-methods

Licence
MIT
Version
1.0.3
Deps
0
Size
3 kB
Vulns
0
Weekly
0

string-methods

You will all required string operations from this package

1. toCharArray

const STR_METHODS = require("all-string-methods"); const string = "Rohit"; console.log(STR_METHODS.toCharArray(string)); -

Output - ['R', 'o', 'h', 'i', 't']

2. equals

const string1 = "Rohit"; const string2 = "Rohit"; console.log(STR_METHODS.equals(string1, string2)); -

Output - true

3. equalsIgnoreCase

const string1 = "Rohit"; const string2 = "rohIT"; console.log(STR_METHODS.equalsIgnoreCase(string1, string2)); -

Output - true

Keywords