Skip to content

Instantly share code, notes, and snippets.

View thesofakillers's full-sized avatar
🤔
💡

Giulio Starace thesofakillers

🤔
💡
View GitHub Profile
Linking Element None -(e)s -(e)n -e -er other
Occurrence 72.8 % 14.8 % 9.7 % 1.3 % 0.7 % 0.7 %
@thesofakillers
thesofakillers / keybase.md
Created February 11, 2020 09:02
proving i am thesofakillers on github.com

Keybase proof

I hereby claim:

  • I am thesofakillers on github.
  • I am thesofakillers (https://keybase.io/thesofakillers) on keybase.
  • I have a public key ASBBvOceItmt9kjOjgaRMbrZoF_7Fey0EAnLOPEZ35MwfQo

To claim this, I am signing this object:

@thesofakillers
thesofakillers / converter.js
Last active February 26, 2024 16:15
JS: Convert Object of Arrays to Array of Objects
/**
* Converts an Object of Arrays to an Array of Objects
* @param {Object} object_arrays An object of arrays where each array is of the same length
* @returns {Array<Object>} An Array of objects where each key in each object corresponds to that element in the original array
*/
function obj_arraysTOarray_objs(object_arrays){
let final_array = object_arrays[Object.keys(object_arrays)[0]].map(
// el is unused, but needs to be defined for map to give access to index i
(_el, i) => {
let internal_object = {};