UNPKG

sikits

Version:

A powerful and comprehensive utility library for JavaScript and TypeScript with 100+ functions for strings, numbers, arrays, and objects

6 lines (5 loc) 242 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.countConsonants = void 0; const countConsonants = (str) => (str.match(/[bcdfghjklmnpqrstvwxyz]/gi) || []).length; exports.countConsonants = countConsonants;