🏠
Working from home
javascriptDeveloper()
/*...................*/ My Skills: [ 'react', 'react-native', 'redux', 'redux-saga', 'graphQL', 'nodeJS', 'mongodb' ... ]
- From home
- @wfs_junior
Pinned Loading
-
validate CPF with functional program...
validate CPF with functional programing paradigm in javascript 1const clearCPF = cpf => cpf.replace(/\D/g, '')
2const validLength = cpf => cpf.length === 11
3const redundant = cpf => cpf.split('').every(x => x === cpf[0])
4const restOrZero = amount => (amount === 10 || amount === 11) ? 0 : amount
5 -
find most recurrent number...
find most recurrent number... 1const arr = [1, 2, 3, 4, 1, 5, 1, 6, 1, 7, 7, 42, 42, 42, 42, 42]
23const findMostRecurrent = param => {
4return param.reduce((acc, curr, index, base) => {
5const currSum = base.filter( it => it === curr).length
-
useFile.js
useFile.js 1import { useState } from 'react'
2// custom hook .................useFile..........................3const useInputFile = () => {
4const [file, setValue] = useState('')
5function getBase64({target}) {
-
-
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.



