Universeorange.com/Docs/
ready(() => {
let haystack = 'hello world!';
console.log(string.occurrence.case.insensitive(haystack, 'world', true));
console.log(string.occurrence.case.insensitive(haystack, 'hello'));
});
this function searches for occurrences in a case-insensitive matter.
haystack
: string
needle
: string
before_needle
: boolean
When before_needle
is true the part before the needle is found is returned.
Last modified: 2021-06-07
© 2021 universeorange.com