From this answer about the memory size of functions in V8 here, it seems like the minimal size of a function (excluding closures) is 36 bytes. The theoretical minimum size of a function on a 64-bit system is 8 bytes for the pointer, so: what are the other 28 bytes allocated for?
Is there a way to create "lightweight" functions in javascript? As far as I know, arrow functions aren't handled any differently from a memory perspective.