Skip to content
View wjuniorw's full-sized avatar
🏠
Working from home
🏠
Working from home

Block or report wjuniorw

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don't include any personal information such as legal names or email addresses. Markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. validate CPF with functional program... validate CPF with functional programing paradigm in javascript
    1
    const clearCPF = cpf => cpf.replace(/\D/g, '')
    2
    const validLength = cpf => cpf.length === 11
    3
    const redundant = cpf => cpf.split('').every(x => x === cpf[0])
    4
    const restOrZero = amount => (amount === 10 || amount === 11) ? 0 : amount
    5
    
                  
  2. find most recurrent number... find most recurrent number...
    1
    const arr = [1, 2, 3, 4, 1, 5, 1, 6, 1, 7, 7, 42, 42, 42, 42, 42]
    2
    
                  
    3
    const findMostRecurrent = param => {
    4
      return param.reduce((acc, curr, index, base) => {
    5
        const currSum = base.filter( it => it === curr).length
  3. useFile.js useFile.js
    1
    import { useState } from 'react'
    2
    // custom hook .................useFile..........................
    3
    const useInputFile = () => {
    4
      const [file, setValue] = useState('')
    5
      function getBase64({target}) {
  4. react-redux-sarter react-redux-sarter Public

    Created with StackBlitz ⚡️

    JavaScript

  5. wjuniorwebdev wjuniorwebdev Public

    personal website and portfólio

    TypeScript