Skip to content

Instantly share code, notes, and snippets.

Avatar

MVictorL mvictorl

View GitHub Profile
@mvictorl
mvictorl / ObjToArr.js
Last active Aug 3, 2020
Array from Object of objects (handling fetrch answer)
View ObjToArr.js
const respose = axios.get(`http://url.com/api/users`) // async/await required
const payload = Object.keys( respose.data || {} ).map( key => {
return {
...respose.data[key],
id: key,
}
})
/*
@mvictorl
mvictorl / index.html
Created May 10, 2020
Animated Input Example
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>Animated Input Example</h1>
<div class="form">
You can’t perform that action at this time.