Skip to content

Instantly share code, notes, and snippets.


Slobodan blistok

View GitHub Profile
gaearon /
Last active Jul 1, 2020
A Gentle Introduction to Prepack, Part 1


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 / 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, '')
return fullPath.every(everyFunc) ? obj : def;
function everyFunc(step) {
staltz /
Last active Jul 8, 2020
The introduction to Reactive Programming you've been missing
You can’t perform that action at this time.