Skip to content

Instantly share code, notes, and snippets.

View keybraker's full-sized avatar
🤔
I'm John, and that's enough

Ioannis Tsiakkas keybraker

🤔
I'm John, and that's enough
View GitHub Profile
@keybraker
keybraker / propertyByString.ts
Created February 1, 2021 11:12
A simple function that lets you access complex object properties with the use of a single string Raw
const countries = [
{
country: {
name: 'Greece',
id: 1,
people: [
[1, 2, 3],
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11],
[
['alice'],