Skip to content

Instantly share code, notes, and snippets.

💭
λ

Slobodan blistok

💭
λ
View GitHub Profile
@gaearon
gaearon / prepack-gentle-intro-1.md
Last active Jul 1, 2020
A Gentle Introduction to Prepack, Part 1
View prepack-gentle-intro-1.md

Note:

When this guide is more complete, the plan is to move it into Prepack documentation.
For now I put it out as a gist to gather initial feedback.

A Gentle Introduction to Prepack (Part 1)

If you're building JavaScript apps, you might already be familiar with some tools that compile JavaScript code to equivalent JavaScript code:

  • Babel lets you use newer JavaScript language features, and outputs equivalent code that targets older JavaScript engines.
@jeneg
jeneg / lodashGetAlternative.js
Last active Jun 7, 2020
Alternative to lodash get method _.get()
View lodashGetAlternative.js
function get(obj, path, def) {
var fullPath = path
.replace(/\[/g, '.')
.replace(/]/g, '')
.split('.')
.filter(Boolean);
return fullPath.every(everyFunc) ? obj : def;
function everyFunc(step) {
@staltz
staltz / introrx.md
Last active Jul 8, 2020
The introduction to Reactive Programming you've been missing
View introrx.md
You can’t perform that action at this time.