all-string-methods

1.0.3 • Public • Published

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

Package Sidebar

Install

npm i all-string-methods

Weekly Downloads

1

Version

1.0.3

License

MIT

Unpacked Size

2.96 kB

Total Files

4

Last publish

Collaborators

  • rohitsg