count-pattern
Pattern counter in text without build in function, Ever
Usage
const cp = require('count-pattern')
const result = cp('banana', 'an')
console.log(result) //2
Features
- Library has written without any build in functions
This package is used for count given pattern in the given text. Works like a regexp search.
Pattern counter in text without build in function, Ever
const cp = require('count-pattern')
const result = cp('banana', 'an')
console.log(result) //2