Skip to content

Instantly share code, notes, and snippets.

View vinibgoulart's full-sized avatar
🎯
Focusing

Vinicius Blazius Goulart vinibgoulart

🎯
Focusing
View GitHub Profile
<!DOCTYPE html><html class="no-js" dir="ltr" loc="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><title>WhatsApp Web</title><meta name="viewport" content="width=device-width"><meta name="google" content="notranslate"><meta name="format-detection" content="telephone=no"><meta name="description" content="Quickly send and receive WhatsApp messages right from your computer."><meta name="og:description" content="Quickly send and receive WhatsApp messages right from your computer."><meta name="og:url" content="https://web.whatsapp.com/"><meta name="og:title" content="WhatsApp Web"><meta name="og:image" content="https://static.facebook.com/images/whatsapp/www/whatsapp-promo.png"><link id="favicon" rel="shortcut icon" href="/img/favicon/1x/favicon.png" type="image/png"><link rel="apple-touch-icon" sizes="192x192" href="/apple-touch-icon.png" type="image/png"><meta name="theme-color" content="#111b21" media="(prefers-color-scheme: dark)"><meta name="theme-color" content="
@vinibgoulart
vinibgoulart / zius.svg
Last active May 23, 2024 04:05
zius.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@vinibgoulart
vinibgoulart / getDirtyValues.ts
Created February 24, 2023 17:34
formik - get dirty values
const getDirtyValues = <T>(values, initialObject: T): object => {
const data = { ...values };
const keyValues = Object.keys(data);
const dirtyValues = keyValues.filter(
(keyValue) => data[keyValue] !== initialObject[keyValue],
);
keyValues.forEach((key) => {
if (!dirtyValues.includes(key)) delete data[key];