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

forthebadge

forthebadge

Readme

Keywords

none

Package Sidebar

Install

npm i stringinstance

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

3.26 kB

Total Files

4

Last publish

Collaborators

  • stampkan