👋
- France
Pinned Loading
-
Transforms a country code (ISO 3166-...
Transforms a country code (ISO 3166-1 alpha-2) into corresponding flag emoji 1import { toUpper } from 'lodash'
23export const codeToFlag = (code: string): string =>
4String.fromCodePoint(
5...toUpper(code)
-
Time needed for a human to read a te...
Time needed for a human to read a text (in ms) 1import { max, words } from 'lodash'
23export const readingTime = (text) => {
4const wordsPerMinute = 280
5const computedTime = (words(text).length * 60000) / wordsPerMinute
-
Memoized function accepting argument...
Memoized function accepting arguments (prevents React rerendering) 1import memoize from 'memoizee'
23/**
4* Returns memoized function accepting arguments (prevents React rerendering)
5*/
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.