I hereby claim:
- I am piotrlo on github.
- I am harrydesmart (https://keybase.io/harrydesmart) on keybase.
- I have a public key ASCQML-KOq0X2d_IUaXdOSBiR_qRKJmvtJdc5Ke9gOS77Qo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
// Array to CSV data | |
const csvContent = result.map(e => e.join(",")).join("\n"); | |
copy(csvContent) |
import React from 'react'; | |
import { useWindowSize } from 'react-use'; | |
// 100vh is broken on mobile (Chrome, Safari): | |
// https://chanind.github.io/javascript/2019/09/28/avoid-100vh-on-mobile-web.html | |
export default function use100vh() { | |
const ref = React.useRef(); | |
const { height } = useWindowSize(); |
// Capitalize all words of a string | |
function capitalize(string) { | |
return string.replace(/\b[a-z]/g, (char) => char.toUpperCase()); | |
} | |
capitalize('overment rocks!'); |