UNPKG

qsu

Version:

qsu is a utility library that contains useful and frequently used functions. Start with your preferred language and the modern development environment.

1 lines 124 B
export function strCount(n,t){if(!n||!t)return 0;let e=0,r=n.indexOf(t);for(;r>-1;)e+=1,r=n.indexOf(t,r+=t.length);return e}