Code Monkey home page Code Monkey logo

handilities's Introduction

Hi there everyone! 👋👋👋

Nice to see you here, I'm kovalenkovpu, welcome! 🤗

Here are some common information for you to get to know me a little better:

  • 👨🏻‍💻 JS, TS developer
  • 🌱 frontend mostly, but also some backend experience and capabilities with nodeJS
  • 🖥 EPAM Systems (one of the largest outsource companies) ex-employee
  • 🏠 Cian PLC (biggest real estate classifieds platform in Russia) current employee
  • 🚴🏻‍♂️ cycling, 🤼‍♀️ grappling as a hobby

🌿🌿🌿

Feel free to ping me in case of any question or suggestion ☺️

handilities's People

Contributors

kovalenkovpu avatar

Stargazers

 avatar

Watchers

 avatar  avatar

handilities's Issues

[H-0005] Add "beautifyNumber" utility

This utility helps format given number according to some common rules:

  1. thousands are split with the space symbol
  2. delimiter is added between whole and fractional parts

Interface:

function beautifyNumber(number: number, delimiter?: string = '.'): string { ... };

Examples:

// beautifyNumber(1000) -> '1 000'
// beautifyNumber(1000.09) -> '1 000.09' where '.' - default delimiter
// beautifyNumber(1000.09, ',') -> '1 000,09'

It's also possible to consider the following interface:

interafce IOptions {
  delimiter: string; // symbol between whole and fractional
  joint: string; // symbol between thousands
  // "delimiter" and "joint" can't be the same
}

function beautifyNumber(number: number, options?: IOptions): string { ... };

[H-0006] Add "pluralize" utility

This utility helps pluralize numericals.
Current feature is better applicable for lagnuages with more complex grammar structure than En, but still having universal utility seems to be profitable.

Interface:

function pluralize(number: number, ['book', 'books']: string[], locale?: 'en' | 'ru'): string { ... };

Examples:

// With default En locale
// pluralize(1, ['book', 'books']) -> `1 book`
// pluralize(2, ['book', 'books']) -> `2 books`

// With Ru locale
// pluralize(1, ['книга', 'книги', 'книг'], 'ru') -> `1 книга`
// pluralize(2, ['книга', 'книги', 'книг'], 'ru') -> `2 книги`
// pluralize(5, ['книга', 'книги', 'книг'], 'ru') -> `5 книг`

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.