0.1.0 • Published 3 years ago

stringinstance v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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

forthebadge

forthebadge