@stanislavkarol/count-chars
v1.1.2
Published
Подсчёт количества символов в строке
Downloads
5
Readme
countChars
Подсчёт количества символов в строке
Install
npm install @stanislavkarol/count-chars -S
API
countChars('Тестовая строка') => Function
countChars(varString) => String
Example
const countChars = require("@stanislavkarol/count-chars");
const varString = "Тестовая строка";
const result = countChars(varString);
console.log(result); // {'Т': 1,'е': 1,'с': 2,'т': 2,'о': 2,'в': 1,'а': 2,'я': 1,' ': 1,'р': 1,'к': 1}