@stanislavkarol/count-chars

1.1.2 • Public • Published

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}

Readme

Keywords

none

Package Sidebar

Install

npm i @stanislavkarol/count-chars

Weekly Downloads

1

Version

1.1.2

License

ISC

Unpacked Size

2.8 kB

Total Files

4

Last publish

Collaborators

  • stanislavkarol