Hi, I am Kiru 👋 an indie hacker, a problem solver and vim-lover. I build projects to make the life of others and mine easier.

This page is intended to collect all my projects and some thoughts.

JavaScript Function string

TIL 07.12.2019

JavaScript functions have a toString() function which gives the source code a string.

let f = () => {
    alert("kiru.io")
}
f.toString()

Will emit

"() => {
alert(\"kiru.io\")
}"

Learned from this resource.

Learn more: