1.0.17 • Published 4 years ago
bulletproof_me v1.0.17
bulletproof_me
Instructions:
npm install bulletproof_me
const bulletproof_me = require('bulletproof_me')If utilizing in html...:
<script src="./node_modules/bulletproof_me/index.js"></script>
<script>
$(()=> {
const output = bulletproof_me.method(parameter)
})
</script>Functions
HAS(one, two) ⇒ boolean
Kind: global function
Date: 2022-02-09
Author: zen-out
| Param | Type |
|---|---|
| one | string |
| two | string |
Example
HAS("string", "st")STARTSWITH(string, substring) ⇒ boolean
Kind: global function
Date: 2022-02-10
Author: zen-out
| Param | Type |
|---|---|
| string | string |
| substring | string |
Example
STARTSWITH(string, substring)ENDSWITH(string, substring) ⇒ boolean
Kind: global function
Date: 2022-02-10
Author: zen-out
| Param | Type |
|---|---|
| string | string |
| substring | string |
Example
ENDSWITH("string", "g")COUNT(type, item, amount) ⇒ boolean
Kind: global function
Date: 2022-03-10
Author: zen-out
| Param | Type |
|---|---|
| type | string |
| item | string |
| amount | number |
Example
COUNT("hello hellodi", "div", 2)
COUNT("hello hellodi", "hello", 2) // true ATLEAST(type, item, amount) ⇒ boolean
Kind: global function
Date: 2022-02-10
Author: zen-out
| Param | Type |
|---|---|
| type | string |
| item | string |
| amount | number |
Example
ATLEAST("div div", "div", 1) //true
ATLEAST("div div", "div", 2) //true
ATLEAST("div div", "div", 3) //false ISLESS(first, second) ⇒ boolean
Kind: global function
Date: 2022-02-17
| Param | Type |
|---|---|
| first | string |
| second | string |
Example
ISLESS("1993-12-11", "1994-12-11")DOESNOTHAVE(string, item) ⇒ boolean
Kind: global function
Date: 2022-02-10
Author: zen-out
| Param | Type |
|---|---|
| string | string |
| item | string |
Example
DOESNOTHAVE("string", "s")ISTYPE(data, type) ⇒ boolean
Kind: global function
Date: 2022-03-01
| Param | Type |
|---|---|
| data | any |
| type | string |
Example
ISTYPE([2, 3], "array")