stringinstance
0.1.0 • Public • Published
StringInstance
Description
Package that check instances of string
Importing
The module is export with ES5
const stringinstance = require("stringinstance")
Usage
Check Instances of string
console.log(StringInstance("1111", "1")); // return 4
// There are four 1 in string
Error
"1st Argument must be string"
StringInstance(null, "1"); // Throw error
//Or
StringInstance(null, null); // Throw error
// null can be other that's not string
"2nd Argument must be string"
StringInstance("1111", null); // Throw error
//Or
StringInstance(null, null); // Throw error
// null can be other that's not string


Readme
Keywords
nonePackage Sidebar
Install
Weekly Downloads