stringinstance
v0.1.0
Published
Package that check instances of string
Readme
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 stringError
"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